FIR: Fix inference when unit value should be cast to Any
This commit is contained in:
committed by
teamcityserver
parent
d3fc22fc6a
commit
c3646b11ac
+2
-3
@@ -197,10 +197,9 @@ class PostponedArgumentsAnalyzer(
|
||||
}
|
||||
|
||||
if (!hasExpressionInReturnArguments && lambdaReturnType != null) {
|
||||
/*LambdaArgumentConstraintPosition(lambda)*/
|
||||
c.getBuilder().addEqualityConstraint(
|
||||
lambdaReturnType,
|
||||
c.getBuilder().addSubtypeConstraint(
|
||||
components.session.builtinTypes.unitType.type,
|
||||
lambdaReturnType,
|
||||
ConeLambdaArgumentConstraintPosition(lambda.atom)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user