[NI] Skip fake call for descriptor from object in builder-inference
This call have interesting rules for resolution, see `KtQualifiedExpression.elementChain` function and it's usages: resolution results for such call can be omitted and be replaced with some other information, while diagnostics will be reported from builder-inference. To mitigate this problem, we'll just skip this call from builder-inference as such calls can't have type parameters anyway #KT-32094 Fixed
This commit is contained in:
+2
-2
@@ -24,7 +24,7 @@ interface InferenceSession {
|
||||
initialStorage: ConstraintStorage
|
||||
): Map<TypeConstructor, UnwrappedType> = emptyMap()
|
||||
|
||||
override fun writeOnlyStubs(): Boolean = false
|
||||
override fun writeOnlyStubs(callInfo: SingleCallResolutionResult): Boolean = false
|
||||
override fun callCompleted(resolvedAtom: ResolvedAtom): Boolean = false
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ interface InferenceSession {
|
||||
fun addErrorCallInfo(callInfo: ErrorCallInfo)
|
||||
fun currentConstraintSystem(): ConstraintStorage
|
||||
fun inferPostponedVariables(lambda: ResolvedLambdaAtom, initialStorage: ConstraintStorage): Map<TypeConstructor, UnwrappedType>
|
||||
fun writeOnlyStubs(): Boolean
|
||||
fun writeOnlyStubs(callInfo: SingleCallResolutionResult): Boolean
|
||||
fun callCompleted(resolvedAtom: ResolvedAtom): Boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user