File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,7 @@ class Namer { typer: Typer =>
703703 typer1.defDefSig(original, sym)(using localContext(sym).setTyper(typer1))
704704 case imp : Import =>
705705 try
706- val expr1 = typedImportQualifier(imp, typedAheadExpr)
706+ val expr1 = typedImportQualifier(imp, typedAheadExpr(_, _)( using ctx.withOwner(sym)) )
707707 ImportType (expr1)
708708 catch case ex : CyclicReference =>
709709 typr.println(s " error while completing ${imp.expr}" )
Original file line number Diff line number Diff line change @@ -2457,7 +2457,7 @@ class Typer extends Namer
24572457 else typd(imp.expr, AnySelectionProto )
24582458
24592459 def typedImport (imp : untpd.Import , sym : Symbol )(using Context ): Import =
2460- val expr1 = typedImportQualifier(imp, typedExpr)
2460+ val expr1 = typedImportQualifier(imp, typedExpr(_, _)( using ctx.withOwner(sym)) )
24612461 checkLegalImportPath(expr1)
24622462 val selectors1 = typedSelectors(imp.selectors)
24632463 assignType(cpy.Import (imp)(expr1, selectors1), sym)
Original file line number Diff line number Diff line change 1+ import scala .quoted ._
2+
3+ trait ReflectModule {
4+ implicit def q : Quotes
5+ import quotes .reflect ._ // error
6+
7+ def foo (x : TypeRepr ): Unit = ???
8+ }
You can’t perform that action at this time.
0 commit comments