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 900982c commit e25e286Copy full SHA for e25e286
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1238,7 +1238,7 @@ class Typer extends Namer
1238
args = args.take(tparams.length)
1239
}
1240
def typedArg(arg: untpd.Tree, tparam: ParamInfo) = {
1241
- def tparamBounds = tparam.paramInfoAsSeenFrom(tpt1.tpe)
+ def tparamBounds = tparam.paramInfoAsSeenFrom(tpt1.tpe.appliedTo(tparams.map(_ => TypeBounds.empty)))
1242
val (desugaredArg, argPt) =
1243
if (ctx.mode is Mode.Pattern)
1244
(if (untpd.isVarPattern(arg)) desugar.patternVar(arg) else arg, tparamBounds)
0 commit comments