Skip to content

Commit 7b64d20

Browse files
committed
chore: always consider implicit parameters as a contextual parameter list
1 parent 5ef4fdf commit 7b64d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ object desugar {
867867
val nu = vparamss.foldLeft(makeNew(classTypeRef)) { (nu, vparams) =>
868868
val app = Apply(nu, vparams.map(refOfDef))
869869
vparams match {
870-
case vparam :: _ if vparam.mods.is(Given) || vparam.name.is(ContextBoundParamName) =>
870+
case vparam :: _ if vparam.mods.isOneOf(GivenOrImplicit) || vparam.name.is(ContextBoundParamName) =>
871871
app.setApplyKind(ApplyKind.Using)
872872
case _ => app
873873
}

0 commit comments

Comments
 (0)