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 9f26d32 commit 08f4c3eCopy full SHA for 08f4c3e
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -549,11 +549,8 @@ trait Implicits { self: Typer =>
549
*/
550
def lazyImplicitCtx(lazyImplicit: Symbol): Context = {
551
val lctx = ctx.fresh
552
- ctx.property(DelayedImplicit) match {
553
- case Some(delayedRef) =>
554
- lctx.setImplicits(new ContextualImplicits(delayedRef :: Nil, ctx.implicits)(ctx))
555
- case None =>
556
- }
+ for (delayedRef <- ctx.property(DelayedImplicit))
+ lctx.setImplicits(new ContextualImplicits(delayedRef :: Nil, ctx.implicits)(ctx))
557
lctx.setProperty(DelayedImplicit, lazyImplicit.termRef)
558
}
559
0 commit comments