[NI] Set correct applicability for unknown lambda parameter diagnostic
Unknown lambda parameter should not change resolve. So the new diagnostic should not have error status; othrewise candidates with lower priority but more specific expected type may be chosen. KT-34335 Fixed See also KT-36264
This commit is contained in:
+1
-1
@@ -213,7 +213,7 @@ class ResolvedToSamWithVarargDiagnostic(val argument: KotlinCallArgument) : Kotl
|
||||
class NotEnoughInformationForLambdaParameter(
|
||||
val lambdaArgument: LambdaKotlinCallArgument,
|
||||
val parameterIndex: Int
|
||||
) : KotlinCallDiagnostic(INAPPLICABLE) {
|
||||
) : KotlinCallDiagnostic(RESOLVED) {
|
||||
override fun report(reporter: DiagnosticReporter) {
|
||||
reporter.onCallArgument(lambdaArgument, this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user