Skip to content

Commit 281c9b7

Browse files
committed
Emit explicit line position for synthetic unit pointing to if condition line
[Cherry-picked 4afb8c7]
1 parent 57c9720 commit 281c9b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
248248
if hasElse then
249249
genLoadTo(elsep, expectedType, dest)
250250
else
251+
lineNumber(tree.cond)
251252
genAdaptAndSendToDest(UNIT, expectedType, dest)
252253
expectedType
253254
end if

0 commit comments

Comments
 (0)