We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd70c61 commit 2d4efa0Copy full SHA for 2d4efa0
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -15,6 +15,7 @@ import TypeErasure.{erasure, hasStableErasure}
15
import Mode.ImplicitsEnabled
16
import Denotations._
17
import NameOps._
18
+import NameKinds.LazyImplicitName
19
import SymDenotations._
20
import Symbols._
21
import Types._
@@ -185,7 +186,8 @@ object Implicits {
185
186
if (outerImplicits == null) 1
187
else if (ctx.scala2Mode ||
188
(ctx.owner eq outerImplicits.ctx.owner) &&
- (ctx.scope eq outerImplicits.ctx.scope)) outerImplicits.level
189
+ (ctx.scope eq outerImplicits.ctx.scope) &&
190
+ !refs.head.name.is(LazyImplicitName)) outerImplicits.level
191
else outerImplicits.level + 1
192
193
/** Is this the outermost implicits? This is the case if it either the implicits
0 commit comments