[FIR] Fix call completion of complex constant expressions with integer contants
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ class FirCallCompletionResultsWriterTransformer(
|
|||||||
is FirIntegerOperatorCall -> {
|
is FirIntegerOperatorCall -> {
|
||||||
val expectedType = data?.getExpectedType(functionCall)
|
val expectedType = data?.getExpectedType(functionCall)
|
||||||
resultType = typeRef.resolvedTypeFromPrototype(typeRef.coneTypeUnsafe<ConeIntegerLiteralType>().getApproximatedType(expectedType))
|
resultType = typeRef.resolvedTypeFromPrototype(typeRef.coneTypeUnsafe<ConeIntegerLiteralType>().getApproximatedType(expectedType))
|
||||||
result.transformSingle(integerApproximator, expectedType)
|
result.transformArguments(this, expectedType?.toExpectedType()).transformSingle(integerApproximator, expectedType)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
resultType = typeRef.substituteTypeRef(subCandidate)
|
resultType = typeRef.substituteTypeRef(subCandidate)
|
||||||
|
|||||||
Reference in New Issue
Block a user