File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -680,16 +680,13 @@ class Evaluator(
680680 visitExpr(k) match {
681681 case Val .Str (_, k1) => k1
682682 case Val .Null (_) => null
683- case x => fieldNameTypeError(x, pos)
683+ case x => fieldNameTypeError(x, pos)
684684 }
685685 }
686686 }
687687
688688 private def fieldNameTypeError (fieldName : Val , pos : Position ): Nothing = {
689- Error .fail(
690- s " Field name must be string or null, not ${fieldName.prettyName}" ,
691- pos
692- )
689+ Error .fail(s " Field name must be string or null, not ${fieldName.prettyName}" , pos)
693690 }
694691
695692 def visitMethod (rhs : Expr , params : Params , outerPos : Position )(implicit
@@ -859,7 +856,7 @@ class Evaluator(
859856 Error .fail(s " Duplicate key ${k} in evaluated object comprehension. " , e.pos);
860857 }
861858 case Val .Null (_) => // do nothing
862- case x => fieldNameTypeError(x, e.pos)
859+ case x => fieldNameTypeError(x, e.pos)
863860 }
864861 }
865862 val valueCache = if (sup == null ) {
You can’t perform that action at this time.
0 commit comments