[K/N][IR] Turned off SAM super types checker
Fixes https://youtrack.jetbrains.com/issue/KT-50399
This commit is contained in:
+6
@@ -580,6 +580,12 @@ internal fun PhaseConfig.disableUnless(phase: AnyNamedPhase, condition: Boolean)
|
|||||||
|
|
||||||
internal fun PhaseConfig.konanPhasesConfig(config: KonanConfig) {
|
internal fun PhaseConfig.konanPhasesConfig(config: KonanConfig) {
|
||||||
with(config.configuration) {
|
with(config.configuration) {
|
||||||
|
// The original comment around [checkSamSuperTypesPhase] still holds, but in order to be on par with JVM_IR
|
||||||
|
// (which doesn't report error for these corner cases), we turn off the checker for now (the problem with variances
|
||||||
|
// is workarounded in [FunctionReferenceLowering] by taking erasure of SAM conversion type).
|
||||||
|
// Also see https://youtrack.jetbrains.com/issue/KT-50399 for more details.
|
||||||
|
disable(checkSamSuperTypesPhase)
|
||||||
|
|
||||||
disable(localEscapeAnalysisPhase)
|
disable(localEscapeAnalysisPhase)
|
||||||
|
|
||||||
// Don't serialize anything to a final executable.
|
// Don't serialize anything to a final executable.
|
||||||
|
|||||||
Reference in New Issue
Block a user