FIR: allow lower bound of flexible type when finding contributed invoke
This commit is contained in:
committed by
TeamCityServer
parent
4a24f0fab3
commit
3bca6ae893
@@ -402,7 +402,7 @@ fun FirExpression.isFunctional(
|
||||
if (coneType.isBuiltinFunctionalType(session)) {
|
||||
return true
|
||||
}
|
||||
val classLikeExpectedFunctionType = expectedFunctionType as? ConeClassLikeType
|
||||
val classLikeExpectedFunctionType = expectedFunctionType?.lowerBoundIfFlexible() as? ConeClassLikeType
|
||||
if (classLikeExpectedFunctionType == null || coneType is ConeIntegerLiteralType) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user