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 b614d84 commit 2e37835Copy full SHA for 2e37835
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -6045,7 +6045,7 @@ object Types {
6045
case _ =>
6046
if args.exists(isRange) then
6047
if variance > 0 then
6048
- tp.derivedAppliedType(tycon, args.map(rangeToBounds)) match
+ tp.derivedAppliedType(tycon, args.map(rangeToBounds))(using ctx.addMode(Mode.AllowLambdaWildcardApply)) match
6049
case tp1: AppliedType if tp1.isUnreducibleWild && ctx.phase != checkCapturesPhase =>
6050
// don't infer a type that would trigger an error later in
6051
// Checking.checkAppliedType; fall through to default handling instead
0 commit comments