[FIR] do not use MUTE_LL_FIR for multiplatform tests
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.fir.kt index b52fbc5..4c9046c 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.fir.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.fir.kt
@@ -1,8 +1,5 @@ // TARGET_BACKEND: JVM // LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: m1-common // FILE: common.kt
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.kt index 5df1cdb..e535e8e 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.kt
@@ -1,8 +1,5 @@ // TARGET_BACKEND: JVM // LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: m1-common // FILE: common.kt
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.ll.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.ll.kt new file mode 100644 index 0000000..5f9469f --- /dev/null +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyImplMemberNotImplemented.ll.kt
@@ -0,0 +1,49 @@ +// TARGET_BACKEND: JVM +// LANGUAGE: +MultiPlatformProjects +// MODULE: m1-common +// FILE: common.kt + +expect open class C1() +expect interface I1 + +open class Common1_1 : C1(), I1 +open class Common1_2 : I1, C1() + +expect open class Expect1_1 : C1, I1 +expect open class Expect1_2 : I1, C1 + + +expect abstract class C2() +expect interface I2 + +open class Common2_1 : C2(), I2 +open class Common2_2 : I2, C2() + +expect open class Expect2_1 : C2, I2 +expect open class Expect2_2 : I2, C2 + +// MODULE: m1-jvm()()(m1-common) +// FILE: main.kt + +actual open class C1 { + fun f() {} +} + +actual interface I1 { + fun f() {} +} + +actual open <!CANNOT_INFER_VISIBILITY, MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class Expect1_1<!> : C1(), I1 +actual open <!CANNOT_INFER_VISIBILITY, MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class Expect1_2<!> : I1, C1() + + +actual abstract class C2 actual constructor() { + fun g() {} +} + +actual interface I2 { + fun g() +} + +actual open class Expect2_1 : C2(), I2 +actual open class Expect2_2 : I2, C2()
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.fir.kt index ad45813..4f3f6e3 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.fir.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.fir.kt
@@ -1,8 +1,5 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // TARGET_PLATFORM: Common // FILE: common.kt
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt index 5e4f92b..f2dee24 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.kt
@@ -1,8 +1,5 @@ // TARGET_BACKEND: JVM // !LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // TARGET_PLATFORM: Common // FILE: common.kt
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.ll.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.ll.kt new file mode 100644 index 0000000..fbb8a29 --- /dev/null +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/manyInterfacesMemberNotImplemented.ll.kt
@@ -0,0 +1,24 @@ +// TARGET_BACKEND: JVM +// !LANGUAGE: +MultiPlatformProjects +// MODULE: common +// TARGET_PLATFORM: Common +// FILE: common.kt + +expect interface S1 +expect interface S2 + +open class A : S1, S2 + +class B : A() + +// MODULE: jvm()()(common) +// TARGET_PLATFORM: JVM +// FILE: main.kt + +actual interface S1 { + fun f() {} +} + +actual interface S2 { + fun f() {} +}
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.fir.kt index 89dc69a..260c3b9 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.fir.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.fir.kt
@@ -1,7 +1,4 @@ // LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // FILE: common.kt expect interface I1<out R> {
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt index 2addf96..4d6c021 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.kt
@@ -1,7 +1,4 @@ // LANGUAGE: +MultiPlatformProjects -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // FILE: common.kt expect interface <!NO_ACTUAL_FOR_EXPECT!>I1<!><out R> {
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.ll.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.ll.kt new file mode 100644 index 0000000..260f2b4 --- /dev/null +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/mixedFunctionalTypesInSupertypes.ll.kt
@@ -0,0 +1,22 @@ +// LANGUAGE: +MultiPlatformProjects +// MODULE: common +// FILE: common.kt +expect interface I1<out R> { + fun invoke(): R +} + +expect interface I2<out R> { + suspend fun invoke(): R +} + +expect interface ExpectInterface : I1<Int>, I2<Int> + +interface CommonInterface : I1<Int>, I2<Int> + +// MODULE: jvm()()(common) +// FILE: main.kt + +<!ACTUAL_TYPE_ALIAS_TO_CLASS_WITH_DECLARATION_SITE_VARIANCE!>actual typealias I1<R> = () -> R<!> +<!ACTUAL_TYPE_ALIAS_TO_CLASS_WITH_DECLARATION_SITE_VARIANCE!>actual typealias I2<R> = suspend () -> R<!> + +actual interface <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>ExpectInterface<!> : <!MIXING_SUSPEND_AND_NON_SUSPEND_SUPERTYPES!>I1<Int>, I2<Int><!>
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.fir.kt index 3f657cb..4259488 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.fir.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.fir.kt
@@ -1,8 +1,5 @@ // LANGUAGE: +MultiPlatformProjects // ISSUE: KT-58845 -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // FILE: common.kt expect interface I
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt index 3844aa6..fb5f635 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.kt
@@ -1,8 +1,5 @@ // LANGUAGE: +MultiPlatformProjects // ISSUE: KT-58845 -// MUTE_LL_FIR -// Reason: MPP diagnostics are reported differentely in the compiler and AA - // MODULE: common // FILE: common.kt expect interface <!NO_ACTUAL_FOR_EXPECT!>I<!>
diff --git a/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.ll.kt b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.ll.kt new file mode 100644 index 0000000..dd87c78 --- /dev/null +++ b/compiler/testData/diagnostics/tests/multiplatform/scopes/scopeOfFunInterface.ll.kt
@@ -0,0 +1,16 @@ +// LANGUAGE: +MultiPlatformProjects +// ISSUE: KT-58845 +// MODULE: common +// FILE: common.kt +expect interface I + +fun interface F : I { + fun foo() +} + +// MODULE: jvm()()(common) +// FILE: main.kt + +actual interface I { + fun bar() +}