diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt index 6ae5fb807af..8a189728cd1 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt @@ -1,8 +1,7 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common -// TARGET_PLATFORM: Common // FILE: common.kt val LocalClass = object { @@ -11,8 +10,7 @@ val LocalClass = object { fun ok() = LocalClass.toString() -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt fun box() = ok() \ No newline at end of file diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt index bf302dbdde3..a5eede2ec82 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt @@ -1,5 +1,6 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects + // MODULE: lib // FILE: lib.kt @@ -9,9 +10,8 @@ fun transform(x: String, f: (String) -> String): String { return f(x) + "K" } -// MODULE: lib2()()(lib) -// TARGET_BACKEND: JVM_IR -// FILE: main.kt +// MODULE: platform()()(lib) +// FILE: platform.kt package bar diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt index 690a913299a..217000a426e 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -11,9 +11,8 @@ expect enum class Base2 { K } fun k() = Base2.K.name -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual enum class Base2 { K } diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt index 0db6f86279a..f7df6e663e7 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -11,9 +11,8 @@ expect fun ret(): R fun foo() = ::ret -// MODULE: main()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual fun ret(): R = "OK" diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt index b7290428d11..aa752305ed5 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -11,9 +11,8 @@ expect fun BooleanArray.getChecked(index: Int): Boolean fun ok() = if (!BooleanArray(1).getChecked(0)) "OK" else "FAIL" -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual fun Array.getChecked(index: Int) = get(index) diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt index 22d9f47246e..598f993f8a7 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt @@ -1,5 +1,6 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects + // MODULE: common // TARGET_PLATFORM: Common @@ -25,8 +26,7 @@ expect class A() { fun g(): Int } -// MODULE: main()()(common) -// TARGET_PLATFORM: JVM +// MODULE: platform()()(common) // FILE: p11.kt diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt index d9948cb76f8..bc2234cd3fb 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt @@ -1,5 +1,6 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects + // MODULE: common // TARGET_PLATFORM: Common // FILE: commonMain.kt @@ -15,9 +16,8 @@ fun test(s: String): String { return a.foo(s) + a.bar } -// MODULE: main()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt open class B { fun foo(s: String) = s diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt index 475598186bd..eaa31c91785 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common0 @@ -25,9 +25,8 @@ expect fun f2(): String fun g2() = f2() -// MODULE: jvm()()(common1, common2) -// TARGET_PLATFORM: JVM -// FILE: jvm.kt +// MODULE: platform()()(common1, common2) +// FILE: platform.kt actual fun f0(): Boolean = true actual fun f1(): String = "O" diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt index c6a53964f28..68cb2452e54 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt @@ -1,5 +1,6 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects + // MODULE: common // TARGET_PLATFORM: Common // FILE: commonMain.kt @@ -12,9 +13,8 @@ expect fun foo(i: Int): Int fun test(s: S) = foo(s) -// MODULE: main()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual fun foo(i: Int) = i diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt index dabcb947a14..d5c58f9a897 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -14,9 +14,8 @@ fun test(): String { return func() + prop } -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual fun func(): String = "O" diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt deleted file mode 100644 index 878cfcb54fc..00000000000 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt +++ /dev/null @@ -1,28 +0,0 @@ -// KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 - -// TARGET_BACKEND: JS_IR -// !LANGUAGE: +MultiPlatformProjects - -// MODULE: common -// TARGET_PLATFORM: Common -// FILE: common.kt - -expect fun func(): String - -expect var prop: String - -fun test(): String { - prop = "K" - return func() + prop -} - -// MODULE: js()()(common) -// TARGET_PLATFORM: JS -// FILE: main.kt - -actual fun func(): String = "O" - -actual var prop: String = "!" - -fun box() = test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt index d9ee4ca5035..f7ee3ec5f88 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -13,9 +13,8 @@ expect fun foo(): S fun test(): S = foo() -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual typealias S = String diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt index e6e5f356dc7..d19aa3411be 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -14,9 +14,8 @@ open class A : S1, S2 class B : A() -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt actual interface S1 { fun o(): S = "O" diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt index 7d75602cfd4..5aad4bf1cf2 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // MODULE: common @@ -11,9 +11,8 @@ interface Foo { fun test(e: Foo) = e.ok() -// MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common) +// FILE: platform.kt interface Bar : Foo diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt index 3d69c9f9cd0..be44b787168 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt @@ -1,5 +1,7 @@ -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 +// IGNORE_BACKEND_K2: JS_IR // !LANGUAGE: +MultiPlatformProjects +// TODO: K2 JS_IR Fail Reason: IrSimpleFunctionPublicSymbolImpl for kotlin/assertArrayEquals|-1961670457646030164[0] is already bound... // MODULE: common1 // TARGET_PLATFORM: Common @@ -13,8 +15,7 @@ fun o() = "O" fun k() = "K" -// MODULE: jvm()()(common1, common2) -// TARGET_PLATFORM: JVM -// FILE: main.kt +// MODULE: platform()()(common1, common2) +// FILE: platform.kt fun box() = o() + k() \ No newline at end of file diff --git a/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt index d7dd689311f..1aecc43c0c4 100644 --- a/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt +++ b/compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt @@ -1,4 +1,4 @@ -// TARGET_BACKEND: JVM +// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects // ISSUE: KT-56329 @@ -15,7 +15,6 @@ expect fun foo(y: T, x: S): String fun ok() = foo(1) + foo(2, "K" as S) // MODULE: jvm()()(common) -// TARGET_PLATFORM: JVM // FILE: main.kt actual typealias S = String diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 8d46b068cac..008b8bb15ae 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -31911,24 +31911,54 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); } + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + @Test @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); } + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + @Test @TestMetadata("expectActualMultiCommon.kt") public void testExpectActualMultiCommon() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); } + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + @Test @TestMetadata("expectActualSimple.kt") public void testExpectActualSimple() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); } + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + @Test @TestMetadata("expectInterfaceInSupertypes.kt") public void testExpectInterfaceInSupertypes() throws Exception { @@ -31953,6 +31983,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/getRidOfDoubleBindingInFir2IrLazyProperty.kt"); } + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + @Test @TestMetadata("kt-56329.kt") public void testKt_56329() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index dd68cbf0432..7a52ce894ae 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -27192,21 +27192,46 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); } + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); } + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + @TestMetadata("expectActualMultiCommon.kt") public void testExpectActualMultiCommon() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); } + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + @TestMetadata("expectActualSimple.kt") public void testExpectActualSimple() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); } + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + @TestMetadata("expectInterfaceInSupertypes.kt") public void testExpectInterfaceInSupertypes() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); @@ -27222,6 +27247,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/multiplatform/k2/basic/getRidOfDoubleBindingInFir2IrLazyProperty.kt"); } + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + @TestMetadata("kt-56329.kt") public void testKt_56329() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java index 5f661f8117f..5585f7a7d90 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java @@ -23094,17 +23094,107 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic") @TestDataPath("$PROJECT_ROOT") public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } + @Test + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); + } + @Test @TestMetadata("expectProperty.kt") public void testExpectProperty() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index b490e58cb46..c375a4226a6 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -23112,15 +23112,81 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic") @TestDataPath("$PROJECT_ROOT") public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Test - @TestMetadata("expectActualSimpleJs.kt") - public void testExpectActualSimpleJs() throws Exception { - runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt"); + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); } @Test @@ -23129,6 +23195,24 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 9dcccd4d5ee..466d6cd281e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -23112,15 +23112,81 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic") @TestDataPath("$PROJECT_ROOT") public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @Test - @TestMetadata("expectActualSimpleJs.kt") - public void testExpectActualSimpleJs() throws Exception { - runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt"); + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); } @Test @@ -23129,6 +23195,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index 38599d7f843..d7521c894f4 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -23112,15 +23112,81 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic") @TestDataPath("$PROJECT_ROOT") public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } @Test - @TestMetadata("expectActualSimpleJs.kt") - public void testExpectActualSimpleJs() throws Exception { - runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimpleJs.kt"); + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); } @Test @@ -23129,6 +23195,24 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java index 993d1e91dc1..113879ee094 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java @@ -26544,17 +26544,107 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe @UseExtTestCaseGroupProvider() @FirPipeline() public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); + } + @Test @TestMetadata("expectProperty.kt") public void testExpectProperty() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/K1NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/K1NativeCodegenBoxTestGenerated.java index b8cb35ba18e..1e9c1be7014 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/K1NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/K1NativeCodegenBoxTestGenerated.java @@ -26241,17 +26241,107 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes @Tag("k1Codegen") @UseExtTestCaseGroupProvider() public class Basic { + @Test + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + @Test public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @Test + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @Test + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @Test + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @Test + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @Test + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @Test + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @Test + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @Test + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @Test + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @Test + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); + } + @Test @TestMetadata("expectProperty.kt") public void testExpectProperty() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @Test + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @Test + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @Test + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @Test @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/IrCodegenBoxWasmTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/IrCodegenBoxWasmTestGenerated.java index 38fba8d1e78..e98bba6fb9d 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/IrCodegenBoxWasmTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/IrCodegenBoxWasmTestGenerated.java @@ -20691,15 +20691,90 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath); } + @TestMetadata("accessToLocalClassFromBackend.kt") + public void testAccessToLocalClassFromBackend() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt"); + } + public void testAllFilesPresentInBasic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("correctParentForTypeParameter.kt") + public void testCorrectParentForTypeParameter() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt"); + } + + @TestMetadata("enumEntryNameCall.kt") + public void testEnumEntryNameCall() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt"); + } + + @TestMetadata("expectActualCallableReference.kt") + public void testExpectActualCallableReference() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt"); + } + + @TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt") + public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt"); + } + + @TestMetadata("expectActualDifferentPackages.kt") + public void testExpectActualDifferentPackages() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt"); + } + + @TestMetadata("expectActualFakeOverrides.kt") + public void testExpectActualFakeOverrides() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt"); + } + + @TestMetadata("expectActualMultiCommon.kt") + public void testExpectActualMultiCommon() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt"); + } + + @TestMetadata("expectActualOverloads.kt") + public void testExpectActualOverloads() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt"); + } + + @TestMetadata("expectActualSimple.kt") + public void testExpectActualSimple() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt"); + } + + @TestMetadata("expectActualTypealias.kt") + public void testExpectActualTypealias() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt"); + } + + @TestMetadata("expectInterfaceInSupertypes.kt") + public void testExpectInterfaceInSupertypes() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt"); + } + @TestMetadata("expectProperty.kt") public void testExpectProperty() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt"); } + @TestMetadata("fakeOverridesInPlatformModule.kt") + public void testFakeOverridesInPlatformModule() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt"); + } + + @TestMetadata("independentCommonSourceModules.kt") + public void testIndependentCommonSourceModules() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt"); + } + + @TestMetadata("kt-56329.kt") + public void testKt_56329() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt"); + } + @TestMetadata("removeExpectDeclarationsFromMetadata.kt") public void testRemoveExpectDeclarationsFromMetadata() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/basic/removeExpectDeclarationsFromMetadata.kt");