K2: report IR_WITH_UNSTABLE_ABI_COMPILED_CLASS

Also, remove setting the value of allowUnstableDependencies to true if
K2 is used because we want K2 to report errors (as K1 does) on
unstable-ABI dependencies.

 #KT-61598 Fixed
This commit is contained in:
Alexander Udalov
2023-08-31 00:36:58 +02:00
committed by Space Team
parent 6a1c210cd1
commit 4f96171716
12 changed files with 51 additions and 7 deletions
@@ -29,7 +29,7 @@ object FirDiagnosticsCompilerResultsReporter {
AnalyzerWithCompilerReport.reportSpecialErrors(
diagnosticsCollector.diagnostics.any { it.factory == FirErrors.INCOMPATIBLE_CLASS },
diagnosticsCollector.diagnostics.any { it.factory == FirErrors.PRE_RELEASE_CLASS },
hasUnstableClasses = false, // TODO (KT-61598): report IR_WITH_UNSTABLE_ABI_COMPILED_CLASS
diagnosticsCollector.diagnostics.any { it.factory == FirErrors.IR_WITH_UNSTABLE_ABI_COMPILED_CLASS },
messageCollector,
)
}