File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import TypeErasure.{erasure, hasStableErasure}
15
15
import Mode .ImplicitsEnabled
16
16
import Denotations ._
17
17
import NameOps ._
18
+ import NameKinds .LazyImplicitName
18
19
import SymDenotations ._
19
20
import Symbols ._
20
21
import Types ._
@@ -185,7 +186,8 @@ object Implicits {
185
186
if (outerImplicits == null ) 1
186
187
else if (ctx.scala2Mode ||
187
188
(ctx.owner eq outerImplicits.ctx.owner) &&
188
- (ctx.scope eq outerImplicits.ctx.scope)) outerImplicits.level
189
+ (ctx.scope eq outerImplicits.ctx.scope) &&
190
+ ! refs.head.name.is(LazyImplicitName )) outerImplicits.level
189
191
else outerImplicits.level + 1
190
192
191
193
/** Is this the outermost implicits? This is the case if it either the implicits
You can’t perform that action at this time.
0 commit comments