File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -977,7 +977,7 @@ trait Implicits:
977977
978978 val result0 =
979979 // If we are searching implicits when resolving an import symbol, start the search
980- // in the first enclosing context that does not have the same scope as the current
980+ // in the first enclosing context that does not have the same scope and owner as the current
981981 // context. Without that precaution, an eligible implicit in the current scope
982982 // would cause a cyclic reference error (if the import is named) or cause a
983983 // spurious import skip (if the import is a wildcard import). See i12802 for a test case.
Original file line number Diff line number Diff line change 1+ trait M :
2+ type X
3+ object X :
4+ def foo (): X = ???
5+
6+ transparent inline def m (using m : M ): m.type = m
7+
8+ def Test1 =
9+ given M = new M {}
10+ import m .* // error: no implicit argument of type M was found
11+ val x : X = X .foo()
12+ println(x)
You can’t perform that action at this time.
0 commit comments