Skip to content

Commit 08f4c3e

Browse files
committed
Polishing
1 parent 9f26d32 commit 08f4c3e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,8 @@ trait Implicits { self: Typer =>
549549
*/
550550
def lazyImplicitCtx(lazyImplicit: Symbol): Context = {
551551
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-
}
552+
for (delayedRef <- ctx.property(DelayedImplicit))
553+
lctx.setImplicits(new ContextualImplicits(delayedRef :: Nil, ctx.implicits)(ctx))
557554
lctx.setProperty(DelayedImplicit, lazyImplicit.termRef)
558555
}
559556

0 commit comments

Comments
 (0)