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}
1515import Mode .ImplicitsEnabled
1616import Denotations ._
1717import NameOps ._
18+ import NameKinds .LazyImplicitName
1819import SymDenotations ._
1920import Symbols ._
2021import Types ._
@@ -185,7 +186,8 @@ object Implicits {
185186 if (outerImplicits == null ) 1
186187 else if (ctx.scala2Mode ||
187188 (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
189191 else outerImplicits.level + 1
190192
191193 /** 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