Cleanup FirPCLAInferenceSession
This commit is contained in:
committed by
Space Team
parent
9743a5b334
commit
e54ed9d470
+5
-4
@@ -282,10 +282,11 @@ class FirPCLAInferenceSession(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun FirExpression.isReceiverPostponed(): Boolean {
|
private fun FirExpression.isReceiverPostponed(): Boolean {
|
||||||
if (resolvedType.containsNotFixedTypeVariables()) return true
|
return when {
|
||||||
if ((this as? FirResolvable)?.candidate()?.usedOuterCs == true) return true
|
resolvedType.containsNotFixedTypeVariables() -> true
|
||||||
|
(this as? FirResolvable)?.candidate()?.usedOuterCs == true -> true
|
||||||
return false
|
else -> false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun ConeKotlinType.containsNotFixedTypeVariables(): Boolean =
|
private fun ConeKotlinType.containsNotFixedTypeVariables(): Boolean =
|
||||||
|
|||||||
Reference in New Issue
Block a user