From 010d5b76e5ca08b04a06f184ff33b135bb8263b2 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 19 Jul 2022 15:31:34 +0200 Subject: [PATCH] Temporary fix for K2/JS tests --- .../kotlin/fir/resolve/calls/ResolutionDiagnostic.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt b/compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt index 487a96a59e3..3102a5b972d 100644 --- a/compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt +++ b/compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt @@ -97,7 +97,9 @@ class UnsafeCall(val actualType: ConeKotlinType) : ResolutionDiagnostic(UNSAFE_C object LowerPriorityToPreserveCompatibilityDiagnostic : ResolutionDiagnostic(RESOLVED_NEED_PRESERVE_COMPATIBILITY) -object LowerPriorityForDynamic : ResolutionDiagnostic(RESOLVED_LOW_PRIORITY) +// TODO: change this to RESOLVED_LOW_PRIORITY after we are able to process dynamic extensions properly +// At the moment we stop resolve on synthetic dynamic members, which is not correct +object LowerPriorityForDynamic : ResolutionDiagnostic(K2_SYNTHETIC_RESOLVED) object CandidateChosenUsingOverloadResolutionByLambdaAnnotation : ResolutionDiagnostic(RESOLVED)