Skip to content

Commit ffc5b6f

Browse files
committed
Use Implied instead of Implicit for implicit matches
`Implicit` will be changed to mean "old-style implicits".
1 parent bcfebf8 commit ffc5b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ class Typer extends Namer
14421442
if (body1.tpe.isInstanceOf[TermRef]) pt1
14431443
else body1.tpe.underlyingIfRepeated(isJava = false)
14441444
val sym = ctx.newPatternBoundSymbol(tree.name, symTp, tree.span)
1445-
if (pt == defn.ImplicitScrutineeTypeRef) sym.setFlag(Implicit)
1445+
if (pt == defn.ImplicitScrutineeTypeRef) sym.setFlag(Implied)
14461446
if (ctx.mode.is(Mode.InPatternAlternative))
14471447
ctx.error(i"Illegal variable ${sym.name} in pattern alternative", tree.sourcePos)
14481448
assignType(cpy.Bind(tree)(tree.name, body1), sym)

0 commit comments

Comments
 (0)