Skip to content

Commit c86fb4f

Browse files
committed
Don't re-type imports.
TreeCheck fails if imports are in code that needs a change owner.
1 parent 30ed58a commit c86fb4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/typer/ReTyper.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class ReTyper(nestingLevel: Int = 0) extends Typer(nestingLevel) with ReChecking
5252
override def typedSuper(tree: untpd.Super, pt: Type)(using Context): Tree =
5353
promote(tree)
5454

55+
override def typedImport(tree: untpd.Import, sym: Symbol)(using Context): Tree =
56+
promote(tree)
57+
5558
override def typedTyped(tree: untpd.Typed, pt: Type)(using Context): Tree = {
5659
assertTyped(tree)
5760

0 commit comments

Comments
 (0)