Skip to content

Commit b991e70

Browse files
committed
Remove unnecessary workaround for repl
1 parent adc0404 commit b991e70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,7 @@ object Symbols {
674674
final def sourcePos(implicit ctx: Context): SourcePosition = {
675675
val source = {
676676
val f = sourceFile
677-
if (f == null || f.isVirtual)
678-
// don't trust virtual files for tree creation - replTest fails otherwise
679-
ctx.source
677+
if (f == null) ctx.source
680678
else ctx.getSource(f)
681679
}
682680
source.atSpan(span)

0 commit comments

Comments
 (0)