Skip to content

Commit 55b470f

Browse files
committed
.
1 parent 8ac4db2 commit 55b470f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Positioned.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Src
5757
info match
5858
// This span is in user code
5959
case HasHeader(offset, originalFile)
60-
if span != NoSpan && span.start >= offset =>
60+
if span.exists && span.start >= offset =>
6161
originalFile.atSpan(span.shift(-offset))
6262
// Otherwise, return the source position in the wrapper code
6363
case _ => source.atSpan(span)

0 commit comments

Comments
 (0)