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 3763e6b commit 2fc2aa2Copy full SHA for 2fc2aa2
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -3408,7 +3408,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3408
def isContextBoundParams = wtp.stripPoly match
3409
case MethodType(EvidenceParamName(_) :: _) => true
3410
case _ => false
3411
- if sourceVersion == `future-migration` && isContextBoundParams
+ if sourceVersion == `future-migration` && isContextBoundParams && pt.args.nonEmpty
3412
then // Under future-migration, don't infer implicit arguments yet for parameters
3413
// coming from context bounds. Issue a warning instead and offer a patch.
3414
report.migrationWarning(
0 commit comments