Skip to content

Commit 2e37835

Browse files
mbovelsmarterdwijnandDecel
committed
Use AllowLambdaWildcardApply mode in ApproximatingTypeMap
Co-Authored-By: Guillaume Martres <63430+smarter@users.noreply.github.com> Co-Authored-By: Dale Wijnand <dale.wijnand@gmail.com> Co-Authored-By: Decel <8268812+Decel@users.noreply.github.com>
1 parent b614d84 commit 2e37835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6045,7 +6045,7 @@ object Types {
60456045
case _ =>
60466046
if args.exists(isRange) then
60476047
if variance > 0 then
6048-
tp.derivedAppliedType(tycon, args.map(rangeToBounds)) match
6048+
tp.derivedAppliedType(tycon, args.map(rangeToBounds))(using ctx.addMode(Mode.AllowLambdaWildcardApply)) match
60496049
case tp1: AppliedType if tp1.isUnreducibleWild && ctx.phase != checkCapturesPhase =>
60506050
// don't infer a type that would trigger an error later in
60516051
// Checking.checkAppliedType; fall through to default handling instead

0 commit comments

Comments
 (0)