diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java index 8202865b639..a0c52052a81 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJvmIrTextTestGenerated.java @@ -2858,138 +2858,6 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI public void testAllFilesPresentInDynamic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("dynamicAndMembersOfAny.kt") - public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); - } - - @Test - @TestMetadata("dynamicArrayAccess.kt") - public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); - } - - @Test - @TestMetadata("dynamicArrayAssignment.kt") - public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayAugmentedAssignment.kt") - public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayIncrementDecrement.kt") - public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicBinaryEqualityOperator.kt") - public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryLogicalOperator.kt") - public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryOperator.kt") - public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryRelationalOperator.kt") - public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); - } - - @Test - @TestMetadata("dynamicCall.kt") - public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); - } - - @Test - @TestMetadata("dynamicElvisOperator.kt") - public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); - } - - @Test - @TestMetadata("dynamicExclExclOperator.kt") - public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); - } - - @Test - @TestMetadata("dynamicInfixCall.kt") - public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); - } - - @Test - @TestMetadata("dynamicMemberAccess.kt") - public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); - } - - @Test - @TestMetadata("dynamicMemberAssignment.kt") - public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberAugmentedAssignment.kt") - public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberIncrementDecrement.kt") - public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicUnaryOperator.kt") - public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicWithSmartCast.kt") - public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); - } - - @Test - @TestMetadata("implicitCastFromDynamic.kt") - public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); - } - - @Test - @TestMetadata("implicitCastToDynamic.kt") - public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); - } - - @Test - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); - } } @Nested @@ -3000,12 +2868,6 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI public void testAllFilesPresentInExternal() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("kt38765.kt") - public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); - } } @Nested @@ -3016,12 +2878,6 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI public void testAllFilesPresentInNative() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("nativeNativeKotlin.kt") - public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); - } } } diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java index 3008dccabdb..3d726f2eed4 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java @@ -2858,138 +2858,6 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest { public void testAllFilesPresentInDynamic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("dynamicAndMembersOfAny.kt") - public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); - } - - @Test - @TestMetadata("dynamicArrayAccess.kt") - public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); - } - - @Test - @TestMetadata("dynamicArrayAssignment.kt") - public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayAugmentedAssignment.kt") - public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayIncrementDecrement.kt") - public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicBinaryEqualityOperator.kt") - public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryLogicalOperator.kt") - public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryOperator.kt") - public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryRelationalOperator.kt") - public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); - } - - @Test - @TestMetadata("dynamicCall.kt") - public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); - } - - @Test - @TestMetadata("dynamicElvisOperator.kt") - public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); - } - - @Test - @TestMetadata("dynamicExclExclOperator.kt") - public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); - } - - @Test - @TestMetadata("dynamicInfixCall.kt") - public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); - } - - @Test - @TestMetadata("dynamicMemberAccess.kt") - public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); - } - - @Test - @TestMetadata("dynamicMemberAssignment.kt") - public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberAugmentedAssignment.kt") - public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberIncrementDecrement.kt") - public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicUnaryOperator.kt") - public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicWithSmartCast.kt") - public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); - } - - @Test - @TestMetadata("implicitCastFromDynamic.kt") - public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); - } - - @Test - @TestMetadata("implicitCastToDynamic.kt") - public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); - } - - @Test - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); - } } @Nested @@ -3000,12 +2868,6 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest { public void testAllFilesPresentInExternal() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("kt38765.kt") - public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); - } } @Nested @@ -3016,12 +2878,6 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest { public void testAllFilesPresentInNative() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("nativeNativeKotlin.kt") - public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); - } } } diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt index 10609344895..3a1360890e8 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL // WITH_STDLIB @@ -5,4 +7,4 @@ fun test1(d: dynamic) = d.toString() fun test2(d: dynamic) = d.hashCode() -fun test3(d: dynamic) = d.equals(42) \ No newline at end of file +fun test3(d: dynamic) = d.equals(42) diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt index 4bc47f516a3..9c5420061eb 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt @@ -1,6 +1,7 @@ +// TARGET_BACKEND: JS_IR // FIR_IDENTICAL fun testArrayAccess1(d: dynamic) = d["KEY"] fun testArrayAccess2(d: dynamic) = d()["KEY"] -fun testArrayAccess3(d: dynamic) = d.get("KEY") \ No newline at end of file +fun testArrayAccess3(d: dynamic) = d.get("KEY") diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt index 0c085f19384..3cd296d2e9a 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR fun testArrayAssignment(d: dynamic) { d["KEY"] = 1 } diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt index be1d3797788..790229ee711 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testArrayAugmentedAssignment(d: dynamic) { d["KEY"] += "+=" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt index 5784989e7f4..9af7bab998a 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR // FIR_IDENTICAL fun testArrayIncrementDecrement(d: dynamic) { diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt index d86ef848c80..01e3400ef14 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testEqeq(d: dynamic) = d == 3 fun testExclEq(d: dynamic) = d != 3 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt index c3a6bf11492..2ef52877cd0 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR // FIR_IDENTICAL fun testAndAnd(d: dynamic) = d && d fun testOrOr(d: dynamic) = d || d diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt index c064ca3b344..084e1132e61 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testBinaryPlus(d: dynamic) = d + 1 fun testBinaryMinus(d: dynamic) = d - 1 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt index 00eb65373b3..15dadbb2220 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt @@ -1,5 +1,7 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testLess(d: dynamic) = d < 2 fun testLessOrEqual(d: dynamic) = d <= 2 fun testGreater(d: dynamic) = d > 2 -fun testGreaterOrEqual(d: dynamic) = d >= 2 \ No newline at end of file +fun testGreaterOrEqual(d: dynamic) = d >= 2 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt index 41e488758b1..5313d17e804 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicCall.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR // FIR_IDENTICAL fun test1(d: dynamic) = d.member(1, 2, 3) @@ -5,4 +6,4 @@ fun test2(d: dynamic) = d?.member(1, 2, 3) // Named arguments in dynamic calls are ignored by JS back-end. // If this becomes a compilation error, simply remove this particular test case. -fun test3(d: dynamic) = d.member(a = 1, b = 2, c = 3) \ No newline at end of file +fun test3(d: dynamic) = d.member(a = 1, b = 2, c = 3) diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt index 30c0017118b..529c52f56fa 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt @@ -1 +1,3 @@ -fun test(d: dynamic) = d ?: "other" \ No newline at end of file +// TARGET_BACKEND: JS_IR + +fun test(d: dynamic) = d ?: "other" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt index f1b6ee373ed..e502cf32ade 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt @@ -1 +1,2 @@ -fun test(d: dynamic) = d!! \ No newline at end of file +// TARGET_BACKEND: JS_IR +fun test(d: dynamic) = d!! diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt index 9baa036558d..55daf4d5613 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt @@ -1,4 +1,6 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun test1(d: dynamic) = d foo 123 -fun test2(d: dynamic) = d invoke 123 \ No newline at end of file +fun test2(d: dynamic) = d invoke 123 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt index 1543e16c005..68551c24d3b 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt @@ -1,4 +1,6 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun test1(d: dynamic) = d.member -fun test2(d: dynamic) = d?.member \ No newline at end of file +fun test2(d: dynamic) = d?.member diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt index c4e3823992a..4fa2bbe2dc0 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt @@ -1,7 +1,9 @@ +// TARGET_BACKEND: JS_IR + fun testMemberAssignment(d: dynamic) { d.m = 1 } fun testSafeMemberAssignment(d: dynamic) { d?.m = 1 -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt index 7458ff873ac..bcfd2c76519 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + fun testAugmentedMemberAssignment(d: dynamic) { d.m += "+=" d.m -= "-=" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt index 0611eddf573..50b07b81f5c 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testMemberIncrementDecrement(d: dynamic) { @@ -12,4 +14,4 @@ fun testSafeMemberIncrementDecrement(d: dynamic) { val t2 = --d?.prefixDecr val t3 = d?.postfixIncr++ val t4 = d?.postfixDecr-- -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt index aa1a8cfce7e..afb714839a3 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt @@ -1,4 +1,6 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun testUnaryMinus(d: dynamic) = -d fun testUnaryPlus(d: dynamic) = +d -fun testExcl(d: dynamic) = !d \ No newline at end of file +fun testExcl(d: dynamic) = !d diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt index 855f3f912b3..a6824be370f 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt @@ -1,5 +1,6 @@ +// TARGET_BACKEND: JS_IR // WITH_STDLIB fun test1(d: dynamic) = if (d is String) d.length else -1 -fun test2(d: dynamic) = if (d is Array<*>) d.size else -1 \ No newline at end of file +fun test2(d: dynamic) = if (d is Array<*>) d.size else -1 diff --git a/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt index 8e5d8b86249..7e8dd060023 100644 --- a/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt +++ b/compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL val d: dynamic = 1 diff --git a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt index 3667ad016a1..0e08d4ff14b 100644 --- a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt +++ b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR val d1: dynamic = 1 val p: Int = 1 diff --git a/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt b/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt index 7d72c50a96d..7d984cc8203 100644 --- a/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/invokeOperator.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JS_IR + // FIR_IDENTICAL fun invoke() {} @@ -7,4 +9,4 @@ fun test3(a: dynamic, b: dynamic) = a(b) fun test4(a: dynamic, b: dynamic) = a.invoke(b) fun test5(a: dynamic, b: dynamic) = a(b)(b) fun test6(a: dynamic, b: dynamic) = a(b).invoke(b) -fun test7(a: dynamic) = invoke() \ No newline at end of file +fun test7(a: dynamic) = invoke() diff --git a/compiler/testData/ir/irText/js/external/kt38765.kt b/compiler/testData/ir/irText/js/external/kt38765.kt index 8b505ce8fa1..f88c4a166a8 100644 --- a/compiler/testData/ir/irText/js/external/kt38765.kt +++ b/compiler/testData/ir/irText/js/external/kt38765.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR package events external open class internal { @@ -15,4 +16,4 @@ external open class internal { } interface NestedExternalInterface {} -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt index ea2571670b5..79f28f24e2a 100644 --- a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt +++ b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JS_IR // FILE: nativeNativeKotlin.kt package foo @@ -36,4 +37,4 @@ B.prototype.constructor = B; B.prototype.bar = function () { return "B.bar" -}; \ No newline at end of file +}; diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java index 64c599a7bc7..a7d431e77fc 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/ClassicJvmIrTextTestGenerated.java @@ -2858,138 +2858,6 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest public void testAllFilesPresentInDynamic() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("dynamicAndMembersOfAny.kt") - public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); - } - - @Test - @TestMetadata("dynamicArrayAccess.kt") - public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); - } - - @Test - @TestMetadata("dynamicArrayAssignment.kt") - public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayAugmentedAssignment.kt") - public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicArrayIncrementDecrement.kt") - public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicBinaryEqualityOperator.kt") - public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryLogicalOperator.kt") - public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryOperator.kt") - public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicBinaryRelationalOperator.kt") - public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); - } - - @Test - @TestMetadata("dynamicCall.kt") - public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); - } - - @Test - @TestMetadata("dynamicElvisOperator.kt") - public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); - } - - @Test - @TestMetadata("dynamicExclExclOperator.kt") - public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); - } - - @Test - @TestMetadata("dynamicInfixCall.kt") - public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); - } - - @Test - @TestMetadata("dynamicMemberAccess.kt") - public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); - } - - @Test - @TestMetadata("dynamicMemberAssignment.kt") - public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberAugmentedAssignment.kt") - public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); - } - - @Test - @TestMetadata("dynamicMemberIncrementDecrement.kt") - public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); - } - - @Test - @TestMetadata("dynamicUnaryOperator.kt") - public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); - } - - @Test - @TestMetadata("dynamicWithSmartCast.kt") - public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); - } - - @Test - @TestMetadata("implicitCastFromDynamic.kt") - public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); - } - - @Test - @TestMetadata("implicitCastToDynamic.kt") - public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); - } - - @Test - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); - } } @Nested @@ -3000,12 +2868,6 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest public void testAllFilesPresentInExternal() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("kt38765.kt") - public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); - } } @Nested @@ -3016,12 +2878,6 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest public void testAllFilesPresentInNative() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - - @Test - @TestMetadata("nativeNativeKotlin.kt") - public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); - } } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt index a210b5eef79..52be5fda845 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt @@ -97,12 +97,6 @@ abstract class AbstractIrTextTestBase>(t ::IrPrettyKotlinDumpHandler ) } - - forTestsMatching("compiler/testData/ir/irText/js/*") { - defaultDirectives { - ModuleStructureDirectives.TARGET_BACKEND_KIND with TargetBackend.JS_IR - } - } } }