File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/ast 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -953,12 +953,12 @@ object desugar {
953
953
else Apply (ref(tupleTypeRef.classSymbol.companionModule.valRef), ts)
954
954
case WhileDo (cond, body) =>
955
955
// { <label> def while$(): Unit = if (cond) { body; while$() } ; while$() }
956
- val call = Apply (Ident (nme.WHILE_PREFIX ), Nil )
956
+ val call = Apply (Ident (nme.WHILE_PREFIX ), Nil ).withPos(tree.pos)
957
957
val rhs = If (cond, Block (body, call), unitLiteral)
958
958
labelDefAndCall(nme.WHILE_PREFIX , rhs, call)
959
959
case DoWhile (body, cond) =>
960
960
// { label def doWhile$(): Unit = { body; if (cond) doWhile$() } ; doWhile$() }
961
- val call = Apply (Ident (nme.DO_WHILE_PREFIX ), Nil )
961
+ val call = Apply (Ident (nme.DO_WHILE_PREFIX ), Nil ).withPos(tree.pos)
962
962
val rhs = Block (body, If (cond, call, unitLiteral))
963
963
labelDefAndCall(nme.DO_WHILE_PREFIX , rhs, call)
964
964
case ForDo (enums, body) =>
You can’t perform that action at this time.
0 commit comments