diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 6ba67554b76..fc36e4f3c29 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -1969,6 +1969,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @Test @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { @@ -5060,6 +5066,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { @@ -12754,22 +12772,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 61e21d8e902..522d1aea5e9 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -1969,6 +1969,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @Test @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { @@ -5060,6 +5066,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { @@ -12754,22 +12772,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/testData/codegen/box/annotations/parameters.kt b/compiler/testData/codegen/box/annotations/parameters.kt index 186a1194046..0c7445572ce 100644 --- a/compiler/testData/codegen/box/annotations/parameters.kt +++ b/compiler/testData/codegen/box/annotations/parameters.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_REFLECT diff --git a/compiler/testData/codegen/box/arrays/arraysAreCloneable.kt b/compiler/testData/codegen/box/arrays/arraysAreCloneable.kt index 1a128e5e84e..4bfa7409f54 100644 --- a/compiler/testData/codegen/box/arrays/arraysAreCloneable.kt +++ b/compiler/testData/codegen/box/arrays/arraysAreCloneable.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR fun foo(x: Cloneable) = x diff --git a/compiler/testData/codegen/box/arrays/cloneArray.kt b/compiler/testData/codegen/box/arrays/cloneArray.kt index 2a5bc1993db..73d7cb5e59a 100644 --- a/compiler/testData/codegen/box/arrays/cloneArray.kt +++ b/compiler/testData/codegen/box/arrays/cloneArray.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_STDLIB diff --git a/compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt b/compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt index 90b8632f2e0..84bed1ac61c 100644 --- a/compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt +++ b/compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_STDLIB diff --git a/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt b/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt index bbab1268152..9467e97fcaa 100644 --- a/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt +++ b/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_STDLIB diff --git a/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt b/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt new file mode 100644 index 00000000000..e04a2822711 --- /dev/null +++ b/compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt @@ -0,0 +1,23 @@ +// WITH_STDLIB + +import kotlin.test.assertEquals + +inline fun foo(x : R, y : R, block : (R) -> T) : T { + val a = x is Number + val b = x is Any + + val b1 = x as Any + + if (a && b) { + return block(x) + } else { + return block(y) + } +} + +fun box() : String { + assertEquals(1, foo(1, 2) { x -> x as Int }) + assertEquals("def", foo("abc", "def") { x -> x as String }) + + return "OK" +} diff --git a/compiler/testData/codegen/box/bridges/kt2498.kt b/compiler/testData/codegen/box/bridges/kt2498.kt index bfd9230c8c0..e6592086d0a 100644 --- a/compiler/testData/codegen/box/bridges/kt2498.kt +++ b/compiler/testData/codegen/box/bridges/kt2498.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE open class BaseStringList: ArrayList() { } diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt index 3f578a330be..fb7924f6380 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE class A : HashSet() fun box(): String { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt index b608f1dcfc3..2d99b3b62c4 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt @@ -1,8 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// KT-6042 java.lang.UnsupportedOperationException with ArrayList -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE class A : ArrayList() fun box(): String { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt index 78bc35fc8e4..d317460cb82 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE open class A : ArrayList() diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt index 414a53d6a16..c208adb7830 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE class A : HashMap() fun box(): String { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt index 3f578a330be..fb7924f6380 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE class A : HashSet() fun box(): String { diff --git a/compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt b/compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt index 078df959a88..79de00a316d 100644 --- a/compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt +++ b/compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_REFLECT diff --git a/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt b/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt index 3fb1d025339..fb2b2d08a2a 100644 --- a/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt +++ b/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt @@ -1,8 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_STDLIB // WITH_REFLECT @@ -25,7 +22,7 @@ inline fun check(f: (T) -> R, g: (T) -> R, tType: String, fun box(): String { check("", 1, ::foo, "String", "Int") check("", 1, ::fooReturnInt, "String", "Int") - check("", "", ::fooReturnInt, "String", "Any") + check("", "", ::fooReturnInt, "String", "Any") // KT-59348 Non-JVM backends have not "Any", but "Comparable" as common parent for Int and String check(Int::toString, ::foo, "Int", "String") diff --git a/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt b/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt new file mode 100644 index 00000000000..e460e492bb1 --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt @@ -0,0 +1,30 @@ +// DONT_TARGET_EXACT_BACKEND: JVM +// DONT_TARGET_EXACT_BACKEND: JVM_IR + +// WITH_STDLIB +// WITH_REFLECT + +import kotlin.test.assertEquals + +fun foo(x: T): R = TODO() +fun fooReturnInt(x: T): Int = 1 + +inline fun check(x: T, y: R, f: (T) -> R, tType: String, rType: String) { + assertEquals(tType, T::class.simpleName) + assertEquals(rType, R::class.simpleName) +} + +inline fun check(f: (T) -> R, g: (T) -> R, tType: String, rType: String) { + assertEquals(tType, T::class.simpleName) + assertEquals(rType, R::class.simpleName) +} + +fun box(): String { + check("", 1, ::foo, "String", "Int") + check("", 1, ::fooReturnInt, "String", "Int") + check("", "", ::fooReturnInt, "String", "Comparable") // KT-59348 JVM backends have not "Comparable", but "Any" as common parent for Int and String + + check(Int::toString, ::foo, "Int", "String") + + return "OK" +} diff --git a/compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt b/compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt index 2119de5f833..89a3a8031a2 100644 --- a/compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt +++ b/compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR class Test { private var iv = 1 diff --git a/compiler/testData/codegen/box/casts/as.kt b/compiler/testData/codegen/box/casts/as.kt index d183fed1fec..984766ed29b 100644 --- a/compiler/testData/codegen/box/casts/as.kt +++ b/compiler/testData/codegen/box/casts/as.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR fun foo(x: Any) = x as Runnable diff --git a/compiler/testData/codegen/box/casts/asSafe.kt b/compiler/testData/codegen/box/casts/asSafe.kt index 5700a1d3cc8..ec8b9d77ed0 100644 --- a/compiler/testData/codegen/box/casts/asSafe.kt +++ b/compiler/testData/codegen/box/casts/asSafe.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR fun foo(x: Any) = x as? Runnable diff --git a/compiler/testData/codegen/box/casts/functions/isFunKSmall.kt b/compiler/testData/codegen/box/casts/functions/isFunKSmall.kt index ecaec4ceed7..e1c3cb0f4f3 100644 --- a/compiler/testData/codegen/box/casts/functions/isFunKSmall.kt +++ b/compiler/testData/codegen/box/casts/functions/isFunKSmall.kt @@ -1,10 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE - // WITH_REFLECT fun fn0() {} @@ -15,10 +8,6 @@ val lambda1 = { x: Any -> } as (Any) -> Unit fun Any.extFun() {} -var Any.extProp: String - get() = "extProp" - set(x: String) {} - class A { fun foo() {} } @@ -28,8 +17,6 @@ fun box(): String { val f1 = ::fn1 as Any val ef = Any::extFun as Any - val epg = Any::extProp.getter - val eps = Any::extProp.setter val afoo = A::foo @@ -38,27 +25,19 @@ fun box(): String { val localFun0 = ::local0 as Any val localFun1 = ::local1 as Any - - assert(f0 is Function0<*>) { "Failed: f0 is Function0<*>" } - assert(f1 is Function1<*, *>) { "Failed: f1 is Function1<*, *>" } - assert(f0 !is Function1<*, *>) { "Failed: f0 !is Function1<*, *>" } - assert(f1 !is Function0<*>) { "Failed: f1 !is Function0<*>" } - assert(lambda0 is Function0<*>) { "Failed: lambda0 is Function0<*>" } - assert(lambda1 is Function1<*, *>) { "Failed: lambda1 is Function1<*, *>" } - assert(lambda0 !is Function1<*, *>) { "Failed: lambda0 !is Function1<*, *>" } - assert(lambda1 !is Function0<*>) { "Failed: lambda1 !is Function0<*>" } + if (f0 !is Function0<*>) return "Failed: f0 is Function0<*>" + if (f1 !is Function1<*, *>) return "Failed: f1 is Function1<*, *>" - assert(localFun0 is Function0<*>) { "Failed: localFun0 is Function0<*>" } - assert(localFun1 is Function1<*, *>) { "Failed: localFun1 is Function1<*, *>" } - assert(localFun0 !is Function1<*, *>) { "Failed: localFun0 !is Function1<*, *>" } - assert(localFun1 !is Function0<*>) { "Failed: localFun1 !is Function0<*>" } + if (lambda0 !is Function0<*>) return "Failed: lambda0 is Function0<*>" + if (lambda1 !is Function1<*, *>) return "Failed: lambda1 is Function1<*, *>" - assert(ef is Function1<*, *>) { "Failed: ef is Function1<*, *>" } - assert(epg is Function1<*, *>) { "Failed: epg is Function1<*, *>"} - assert(eps is Function2<*, *, *>) { "Failed: eps is Function2<*, *, *>"} + if (localFun0 !is Function0<*>) return "Failed: localFun0 is Function0<*>" + if (localFun1 !is Function1<*, *>) return "Failed: localFun1 is Function1<*, *>" - assert(afoo is Function1<*, *>) { "afoo is Function1<*, *>" } + if (ef !is Function1<*, *>) return "Failed: ef is Function1<*, *>" + + if (afoo !is Function1<*, *>) return "afoo is Function1<*, *>" return "OK" } diff --git a/compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt b/compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt new file mode 100644 index 00000000000..07bc13fa534 --- /dev/null +++ b/compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt @@ -0,0 +1,46 @@ +// TARGET_BACKEND: JS +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// WITH_REFLECT + +fun fn0() {} +fun fn1(x: Any) {} + +val lambda0 = {} as () -> Unit +val lambda1 = { x: Any -> } as (Any) -> Unit + +fun Any.extFun() {} + +var Any.extProp: String + get() = "extProp" + set(x: String) {} + +class A { + fun foo() {} +} + +fun box(): String { + val f0 = ::fn0 as Any + val f1 = ::fn1 as Any + + val ef = Any::extFun as Any + + val afoo = A::foo + + fun local0() {} + fun local1(x: Any) {} + + val localFun0 = ::local0 as Any + val localFun1 = ::local1 as Any + + if (f0 !is Function1<*, *>) return "Failed: f0 is Function1<*, *>" + if (f1 !is Function0<*>) return "Failed: f1 is Function0<*>" + + if (lambda0 !is Function1<*, *>) return "Failed: lambda0 is Function1<*, *>" + if (lambda1 !is Function0<*>) return "Failed: lambda1 is Function0<*>" + + if (localFun0 !is Function1<*, *>) return "Failed: localFun0 is Function1<*, *>" + if (localFun1 !is Function0<*>) return "Failed: localFun1 is Function0<*>" + + return "OK" +} diff --git a/compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt b/compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt new file mode 100644 index 00000000000..2947fb932d6 --- /dev/null +++ b/compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt @@ -0,0 +1,18 @@ +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR + +// WITH_REFLECT + +var Any.extProp: String + get() = "extProp" + set(x: String) {} + +fun box(): String { + val epg = Any::extProp.getter + val eps = Any::extProp.setter + + if (epg !is Function1<*, *>) return "Failed: epg is Function1<*, *>" + if (eps !is Function2<*, *, *>) return "Failed: eps is Function2<*, *, *>" + + return "OK" +} diff --git a/compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt b/compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt new file mode 100644 index 00000000000..67f3a3a652f --- /dev/null +++ b/compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt @@ -0,0 +1,46 @@ +// DONT_TARGET_EXACT_BACKEND: JS +// DONT_TARGET_EXACT_BACKEND: JS_IR +// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6 +// WITH_REFLECT + +fun fn0() {} +fun fn1(x: Any) {} + +val lambda0 = {} as () -> Unit +val lambda1 = { x: Any -> } as (Any) -> Unit + +fun Any.extFun() {} + +var Any.extProp: String + get() = "extProp" + set(x: String) {} + +class A { + fun foo() {} +} + +fun box(): String { + val f0 = ::fn0 as Any + val f1 = ::fn1 as Any + + val ef = Any::extFun as Any + + val afoo = A::foo + + fun local0() {} + fun local1(x: Any) {} + + val localFun0 = ::local0 as Any + val localFun1 = ::local1 as Any + + if (f0 is Function1<*, *>) return "Failed: f0 !is Function1<*, *>" + if (f1 is Function0<*>) return "Failed: f1 !is Function0<*>" + + if (lambda0 is Function1<*, *>) return "Failed: lambda0 !is Function1<*, *>" + if (lambda1 is Function0<*>) "Failed: lambda1 !is Function0<*>" + + if (localFun0 is Function1<*, *>) return "Failed: localFun0 !is Function1<*, *>" + if (localFun1 is Function0<*>) return "Failed: localFun1 !is Function0<*>" + + return "OK" +} diff --git a/compiler/testData/codegen/box/casts/is.kt b/compiler/testData/codegen/box/casts/is.kt index 629b1f01cb2..3f6cae74c05 100644 --- a/compiler/testData/codegen/box/casts/is.kt +++ b/compiler/testData/codegen/box/casts/is.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR fun foo(x: Any) = x is Runnable diff --git a/compiler/testData/codegen/box/casts/notIs.kt b/compiler/testData/codegen/box/casts/notIs.kt index f842a46081f..8e377707350 100644 --- a/compiler/testData/codegen/box/casts/notIs.kt +++ b/compiler/testData/codegen/box/casts/notIs.kt @@ -1,9 +1,5 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR fun foo(x: Any) = x !is Runnable diff --git a/compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt b/compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt index c69d0063d72..477e1c63ccc 100644 --- a/compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt +++ b/compiler/testData/codegen/box/classLiteral/bound/sideEffect.kt @@ -1,8 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE, WASM - fun box(): String { var x = 42 @@ -11,8 +6,8 @@ fun box(): String { if (x != 43) return "Fail 2: $x" val k2 = { x *= 2; x }()::class - // Note that k2 is the class of the wrapper type java.lang.Integer - if (k2 != Integer::class) return "Fail 3: $k2" + // Note that k2 is the class of the wrapper type Int + if (k2 != Int::class) return "Fail 3: $k2" if (x != 86) return "Fail 4: $x" return "OK" diff --git a/compiler/testData/codegen/box/classLiteral/java/kt11943.kt b/compiler/testData/codegen/box/classLiteral/java/kt11943.kt index 7e5de07209f..261a8ba91b2 100644 --- a/compiler/testData/codegen/box/classLiteral/java/kt11943.kt +++ b/compiler/testData/codegen/box/classLiteral/java/kt11943.kt @@ -1,7 +1,5 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE, WASM +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // WITH_STDLIB diff --git a/compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt b/compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt index 1e2d9e70aaf..de713d6664b 100644 --- a/compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt +++ b/compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt @@ -1,5 +1,5 @@ // IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS +// WASM_MUTE_REASON: Wrong box result 'fail2: global = AD'; Expected "OK" var global = "A" class C { diff --git a/compiler/testData/codegen/box/classes/delegationJava.kt b/compiler/testData/codegen/box/classes/delegationJava.kt index a83fc11eebe..6548a3d0d0e 100644 --- a/compiler/testData/codegen/box/classes/delegationJava.kt +++ b/compiler/testData/codegen/box/classes/delegationJava.kt @@ -1,9 +1,6 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // Enable for JS when it supports Java class library. -// IGNORE_BACKEND: JS, NATIVE class TestJava(r : Runnable) : Runnable by r {} class TestRunnable() : Runnable { diff --git a/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt b/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt index 9fe978be435..89a350eb482 100644 --- a/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt +++ b/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: WASM // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE interface A : Set diff --git a/compiler/testData/codegen/box/classes/kt1120.kt b/compiler/testData/codegen/box/classes/kt1120.kt index e6eca236d7e..240f40d1b4c 100644 --- a/compiler/testData/codegen/box/classes/kt1120.kt +++ b/compiler/testData/codegen/box/classes/kt1120.kt @@ -1,10 +1,6 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 -// Won't ever work with JS backend. +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR // TODO: Consider rewriting this test without using threads, since the issue is not about threads at all. -// IGNORE_BACKEND: JS, NATIVE object RefreshQueue { val any = Any() diff --git a/compiler/testData/codegen/box/collections/kt41123.kt b/compiler/testData/codegen/box/collections/kt41123.kt index 3b829d69a0e..817a4ad992f 100644 --- a/compiler/testData/codegen/box/collections/kt41123.kt +++ b/compiler/testData/codegen/box/collections/kt41123.kt @@ -1,5 +1,5 @@ // IGNORE_BACKEND: WASM -// IGNORE_BACKEND: NATIVE +// DONT_TARGET_EXACT_BACKEND: NATIVE // WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // WITH_STDLIB diff --git a/compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt b/compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt index 282b15c40b7..8ff89b21289 100644 --- a/compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt +++ b/compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt @@ -1,8 +1,6 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: FAILS_IN_JS_IR -// IGNORE_BACKEND: JS, JS_IR, NATIVE -// IGNORE_BACKEND: JS_IR_ES6 -// IGNORE_BACKEND_K2: JVM_IR, NATIVE +// TARGET_BACKEND: JVM +// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K2: JVM_IR // FIR status: value: 0 should have type Long // WITH_STDLIB diff --git a/compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt b/compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt deleted file mode 100644 index 5342a8b26c0..00000000000 --- a/compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt +++ /dev/null @@ -1,28 +0,0 @@ -// IGNORE_BACKEND: JVM_IR, JS_IR -// FIR status: not supported in JVM -// IGNORE_BACKEND: JS_IR_ES6 -// IGNORE_BACKEND: JVM, JS, NATIVE -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS -// WITH_STDLIB -// WITH_COROUTINES -import helpers.* -import kotlin.coroutines.* -import kotlin.coroutines.intrinsics.* - -suspend fun callLocal(): String { - val local = suspend fun() = "OK" - return local() -} - -fun builder(c: suspend () -> Unit) { - c.startCoroutine(EmptyContinuation) -} - -fun box(): String { - var res = "FAIL" - builder { - res = callLocal() - } - return res -} 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 1a7d6c71504..5df25a9877b 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 @@ -1813,6 +1813,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @Test @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { @@ -4856,6 +4862,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { @@ -12484,22 +12502,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index e339435d9be..9500baf2451 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -1969,6 +1969,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @Test @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { @@ -5060,6 +5066,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { @@ -12754,22 +12772,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index c52142841ea..3fdd1038149 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -1969,6 +1969,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @Test + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @Test @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { @@ -5060,6 +5066,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { @@ -12754,22 +12772,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index c4ed1d3f06c..bb5a1b40812 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -1604,6 +1604,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); } + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); + } + @TestMetadata("explicitEqualsOnDouble.kt") public void testExplicitEqualsOnDouble() throws Exception { runTest("compiler/testData/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt"); @@ -4233,6 +4238,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @TestMetadata("isFunKSmallJVM.kt") + public void testIsFunKSmallJVM() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJVM.kt"); + } + + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @TestMetadata("javaTypeIsFunK.kt") public void testJavaTypeIsFunK() throws Exception { runTest("compiler/testData/codegen/box/casts/functions/javaTypeIsFunK.kt"); @@ -10036,24 +10051,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractLightAnalysisModeTest { - @TestMetadata("simple.kt") - public void ignoreSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) 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 e292edc2a73..0d9ebb827be 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 @@ -53,12 +53,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -291,24 +285,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1118,9 +1094,9 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -2500,12 +2476,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2779,9 +2749,9 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3218,12 +3188,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3329,24 +3293,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3425,12 +3377,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3485,12 +3431,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3554,6 +3494,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJS.kt") + public void testIsFunKSmallJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -3825,12 +3771,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -3957,12 +3897,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4053,12 +3987,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5429,12 +5357,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -9298,22 +9220,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsLegacyPrimitiveArraysBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsLegacyPrimitiveArraysBoxTestGenerated.java index 1bc2663644c..0ade51236a0 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsLegacyPrimitiveArraysBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsLegacyPrimitiveArraysBoxTestGenerated.java @@ -61,24 +61,6 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() 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 4486457af7e..b30670df4aa 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 @@ -53,12 +53,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -345,24 +339,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1172,9 +1148,9 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -2560,12 +2536,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2839,9 +2809,9 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3278,12 +3248,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3389,24 +3353,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3485,12 +3437,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3551,12 +3497,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3620,6 +3560,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJS.kt") + public void testIsFunKSmallJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -3891,12 +3837,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4023,12 +3963,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4119,12 +4053,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5495,12 +5423,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -9400,22 +9322,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") 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 6aee51877a1..2d9266792f6 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 @@ -53,12 +53,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -345,24 +339,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1172,9 +1148,9 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -2560,12 +2536,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2839,9 +2809,9 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3278,12 +3248,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3389,24 +3353,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3485,12 +3437,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3551,12 +3497,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3620,6 +3560,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJS.kt") + public void testIsFunKSmallJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -3891,12 +3837,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4023,12 +3963,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4119,12 +4053,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5495,12 +5423,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -9400,22 +9322,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") 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 f5e8bc5fe31..fad4386e34f 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 @@ -53,12 +53,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -345,24 +339,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1172,9 +1148,9 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -2560,12 +2536,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2839,9 +2809,9 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3278,12 +3248,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3389,24 +3353,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3485,12 +3437,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3551,12 +3497,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3620,6 +3560,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallJS.kt") + public void testIsFunKSmallJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -3891,12 +3837,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4023,12 +3963,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4119,12 +4053,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5495,12 +5423,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -9400,22 +9322,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") 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 e505a18c234..7e723f2e734 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 @@ -64,12 +64,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -383,24 +377,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1240,9 +1216,9 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -1600,12 +1576,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); } - @Test - @TestMetadata("kt2498.kt") - public void testKt2498() throws Exception { - runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); - } - @Test @TestMetadata("kt2702.kt") public void testKt2702() throws Exception { @@ -1928,41 +1898,11 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe @FirPipeline() @UseExtTestCaseGroupProvider() public class ExtendJavaClasses { - @Test - @TestMetadata("abstractSet.kt") - public void testAbstractSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt"); - } - @Test public void testAllFilesPresentInExtendJavaClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("arrayList.kt") - public void testArrayList() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt"); - } - - @Test - @TestMetadata("extendArrayListThroughKotlin.kt") - public void testExtendArrayListThroughKotlin() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt"); - } - - @Test - @TestMetadata("hashMap.kt") - public void testHashMap() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt"); - } - - @Test - @TestMetadata("hashSet.kt") - public void testHashSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt"); - } - @Test @TestMetadata("overrideAbstractSetMethod.kt") public void testOverrideAbstractSetMethod() throws Exception { @@ -2652,12 +2592,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2940,9 +2874,9 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3385,12 +3319,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3502,24 +3430,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3598,12 +3514,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3664,12 +3574,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3742,6 +3646,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -4061,12 +3971,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4196,12 +4100,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4238,12 +4136,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); } - @Test - @TestMetadata("inheritSetAndHashSet.kt") - public void testInheritSetAndHashSet() throws Exception { - runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() throws Exception { @@ -4292,12 +4184,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5554,12 +5440,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/collections/internalRemove.kt"); } - @Test - @TestMetadata("kt41123.kt") - public void testKt41123() throws Exception { - runTest("compiler/testData/codegen/box/collections/kt41123.kt"); - } - @Test @TestMetadata("removeClash.kt") public void testRemoveClash() throws Exception { @@ -6367,12 +6247,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -10380,25 +10254,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java index 2ce466c63b0..a20d6b61c60 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java @@ -70,12 +70,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -403,24 +397,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1280,9 +1256,9 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -1642,12 +1618,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); } - @Test - @TestMetadata("kt2498.kt") - public void testKt2498() throws Exception { - runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); - } - @Test @TestMetadata("kt2702.kt") public void testKt2702() throws Exception { @@ -1978,41 +1948,11 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB @UsePartialLinkage(mode = Mode.DISABLED) @Tag("no-partial-linkage-may-be-skipped") public class ExtendJavaClasses { - @Test - @TestMetadata("abstractSet.kt") - public void testAbstractSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt"); - } - @Test public void testAllFilesPresentInExtendJavaClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("arrayList.kt") - public void testArrayList() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt"); - } - - @Test - @TestMetadata("extendArrayListThroughKotlin.kt") - public void testExtendArrayListThroughKotlin() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt"); - } - - @Test - @TestMetadata("hashMap.kt") - public void testHashMap() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt"); - } - - @Test - @TestMetadata("hashSet.kt") - public void testHashSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt"); - } - @Test @TestMetadata("overrideAbstractSetMethod.kt") public void testOverrideAbstractSetMethod() throws Exception { @@ -2716,12 +2656,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -3010,9 +2944,9 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3459,12 +3393,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3580,24 +3508,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3676,12 +3592,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3742,12 +3652,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3822,6 +3726,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -4157,12 +4067,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4294,12 +4198,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4336,12 +4234,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); } - @Test - @TestMetadata("inheritSetAndHashSet.kt") - public void testInheritSetAndHashSet() throws Exception { - runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() throws Exception { @@ -4390,12 +4282,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5668,12 +5554,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/collections/internalRemove.kt"); } - @Test - @TestMetadata("kt41123.kt") - public void testKt41123() throws Exception { - runTest("compiler/testData/codegen/box/collections/kt41123.kt"); - } - @Test @TestMetadata("removeClash.kt") public void testRemoveClash() throws Exception { @@ -6511,12 +6391,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -10596,27 +10470,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index 2abe332621c..dabeba6f4b9 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -62,12 +62,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -374,24 +368,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1221,9 +1197,9 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -1580,12 +1556,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); } - @Test - @TestMetadata("kt2498.kt") - public void testKt2498() throws Exception { - runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); - } - @Test @TestMetadata("kt2702.kt") public void testKt2702() throws Exception { @@ -1904,41 +1874,11 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest @UseExtTestCaseGroupProvider() @DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE") public class ExtendJavaClasses { - @Test - @TestMetadata("abstractSet.kt") - public void testAbstractSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt"); - } - @Test public void testAllFilesPresentInExtendJavaClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("arrayList.kt") - public void testArrayList() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt"); - } - - @Test - @TestMetadata("extendArrayListThroughKotlin.kt") - public void testExtendArrayListThroughKotlin() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt"); - } - - @Test - @TestMetadata("hashMap.kt") - public void testHashMap() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt"); - } - - @Test - @TestMetadata("hashSet.kt") - public void testHashSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt"); - } - @Test @TestMetadata("overrideAbstractSetMethod.kt") public void testOverrideAbstractSetMethod() throws Exception { @@ -2621,12 +2561,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2906,9 +2840,9 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3349,12 +3283,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3464,24 +3392,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3560,12 +3476,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3626,12 +3536,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3703,6 +3607,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -4014,12 +3924,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4148,12 +4052,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4190,12 +4088,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); } - @Test - @TestMetadata("inheritSetAndHashSet.kt") - public void testInheritSetAndHashSet() throws Exception { - runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() throws Exception { @@ -4244,12 +4136,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5498,12 +5384,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/collections/internalRemove.kt"); } - @Test - @TestMetadata("kt41123.kt") - public void testKt41123() throws Exception { - runTest("compiler/testData/codegen/box/collections/kt41123.kt"); - } - @Test @TestMetadata("removeClash.kt") public void testRemoveClash() throws Exception { @@ -6296,12 +6176,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -10273,24 +10147,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java index 4a35d652ce7..3373256b5bf 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java @@ -65,12 +65,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @Test - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @Test @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { @@ -384,24 +378,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @Test - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @Test - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @Test - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @Test @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { @@ -1241,9 +1217,9 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } @Test - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @Test @@ -1601,12 +1577,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/bridges/kt1959.kt"); } - @Test - @TestMetadata("kt2498.kt") - public void testKt2498() throws Exception { - runTest("compiler/testData/codegen/box/bridges/kt2498.kt"); - } - @Test @TestMetadata("kt2702.kt") public void testKt2702() throws Exception { @@ -1929,41 +1899,11 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT @UsePartialLinkage(mode = Mode.DISABLED) @Tag("no-partial-linkage-may-be-skipped") public class ExtendJavaClasses { - @Test - @TestMetadata("abstractSet.kt") - public void testAbstractSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/abstractSet.kt"); - } - @Test public void testAllFilesPresentInExtendJavaClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("arrayList.kt") - public void testArrayList() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/arrayList.kt"); - } - - @Test - @TestMetadata("extendArrayListThroughKotlin.kt") - public void testExtendArrayListThroughKotlin() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/extendArrayListThroughKotlin.kt"); - } - - @Test - @TestMetadata("hashMap.kt") - public void testHashMap() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashMap.kt"); - } - - @Test - @TestMetadata("hashSet.kt") - public void testHashSet() throws Exception { - runTest("compiler/testData/codegen/box/builtinStubMethods/extendJavaClasses/hashSet.kt"); - } - @Test @TestMetadata("overrideAbstractSetMethod.kt") public void testOverrideAbstractSetMethod() throws Exception { @@ -2653,12 +2593,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @Test - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2941,9 +2875,9 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } @Test - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @Test @@ -3386,12 +3320,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @Test - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @Test @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { @@ -3503,24 +3431,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @Test @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @Test - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @Test @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { @@ -3599,12 +3515,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @Test - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @Test @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { @@ -3665,12 +3575,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @Test - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @Test @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { @@ -3743,6 +3647,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @Test + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @Test @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { @@ -4062,12 +3972,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - - @Test - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -4197,12 +4101,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @Test - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @Test @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { @@ -4239,12 +4137,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/classes/implementComparableInSubclass.kt"); } - @Test - @TestMetadata("inheritSetAndHashSet.kt") - public void testInheritSetAndHashSet() throws Exception { - runTest("compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() throws Exception { @@ -4293,12 +4185,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @Test - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @Test @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { @@ -5555,12 +5441,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/collections/internalRemove.kt"); } - @Test - @TestMetadata("kt41123.kt") - public void testKt41123() throws Exception { - runTest("compiler/testData/codegen/box/collections/kt41123.kt"); - } - @Test @TestMetadata("removeClash.kt") public void testRemoveClash() throws Exception { @@ -6368,12 +6248,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/constants/long.kt"); } - @Test - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @Test @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { @@ -10381,25 +10255,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Nested - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Anonymous { - @Test - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") 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 8f14db402f2..c4155f71662 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 @@ -58,11 +58,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt"); } - @TestMetadata("parameters.kt") - public void testParameters() throws Exception { - runTest("compiler/testData/codegen/box/annotations/parameters.kt"); - } - @TestMetadata("resolveWithLowPriorityAnnotation.kt") public void testResolveWithLowPriorityAnnotation() throws Exception { runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt"); @@ -334,21 +329,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } - @TestMetadata("arraysAreCloneable.kt") - public void testArraysAreCloneable() throws Exception { - runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt"); - } - - @TestMetadata("cloneArray.kt") - public void testCloneArray() throws Exception { - runTest("compiler/testData/codegen/box/arrays/cloneArray.kt"); - } - - @TestMetadata("clonePrimitiveArrays.kt") - public void testClonePrimitiveArrays() throws Exception { - runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt"); - } - @TestMetadata("collectionAssignGetMultiIndex.kt") public void testCollectionAssignGetMultiIndex() throws Exception { runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt"); @@ -1069,9 +1049,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/boxingOptimization/casts.kt"); } - @TestMetadata("checkcastAndInstanceOf.kt") - public void testCheckcastAndInstanceOf() throws Exception { - runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt"); + @TestMetadata("checkcastAndInstanceOf2.kt") + public void testCheckcastAndInstanceOf2() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt"); } @TestMetadata("explicitEqualsOnDouble.kt") @@ -2272,11 +2252,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testReceiverInEquals() throws Exception { runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt"); } - - @TestMetadata("reflectionReference.kt") - public void testReflectionReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt"); - } } } @@ -2518,9 +2493,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitOneStringArg.kt"); } - @TestMetadata("genericCallableReferenceArguments.kt") - public void testGenericCallableReferenceArguments() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt"); + @TestMetadata("genericCallableReferenceArgumentsNonJVM.kt") + public void testGenericCallableReferenceArgumentsNonJVM() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt"); } @TestMetadata("genericCallableReferenceWithReifiedTypeParam.kt") @@ -2894,11 +2869,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt"); } - @TestMetadata("kt6870_privatePropertyReference.kt") - public void testKt6870_privatePropertyReference() throws Exception { - runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt"); - } - @TestMetadata("listOfStringsMapLength.kt") public void testListOfStringsMapLength() throws Exception { runTest("compiler/testData/codegen/box/callableReference/property/listOfStringsMapLength.kt"); @@ -2991,21 +2961,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } - @TestMetadata("as.kt") - public void testAs() throws Exception { - runTest("compiler/testData/codegen/box/casts/as.kt"); - } - @TestMetadata("asForConstants.kt") public void testAsForConstants() throws Exception { runTest("compiler/testData/codegen/box/casts/asForConstants.kt"); } - @TestMetadata("asSafe.kt") - public void testAsSafe() throws Exception { - runTest("compiler/testData/codegen/box/casts/asSafe.kt"); - } - @TestMetadata("asSafeFail.kt") public void testAsSafeFail() throws Exception { runTest("compiler/testData/codegen/box/casts/asSafeFail.kt"); @@ -3071,11 +3031,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt"); } - @TestMetadata("is.kt") - public void testIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/is.kt"); - } - @TestMetadata("isNullablePrimitive.kt") public void testIsNullablePrimitive() throws Exception { runTest("compiler/testData/codegen/box/casts/isNullablePrimitive.kt"); @@ -3126,11 +3081,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt"); } - @TestMetadata("notIs.kt") - public void testNotIs() throws Exception { - runTest("compiler/testData/codegen/box/casts/notIs.kt"); - } - @TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt") public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception { runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt"); @@ -3188,6 +3138,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt"); } + @TestMetadata("isFunKSmallNonJS.kt") + public void testIsFunKSmallNonJS() throws Exception { + runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt"); + } + @TestMetadata("reifiedAsFunKBig.kt") public void testReifiedAsFunKBig() throws Exception { runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt"); @@ -3451,11 +3406,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInJava() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } - - @TestMetadata("kt11943.kt") - public void testKt11943() throws Exception { - runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt"); - } } } @@ -3566,11 +3516,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt"); } - @TestMetadata("delegationJava.kt") - public void testDelegationJava() throws Exception { - runTest("compiler/testData/codegen/box/classes/delegationJava.kt"); - } - @TestMetadata("delegationMethodsWithArgs.kt") public void testDelegationMethodsWithArgs() throws Exception { runTest("compiler/testData/codegen/box/classes/delegationMethodsWithArgs.kt"); @@ -3646,11 +3591,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/kt1018.kt"); } - @TestMetadata("kt1120.kt") - public void testKt1120() throws Exception { - runTest("compiler/testData/codegen/box/classes/kt1120.kt"); - } - @TestMetadata("kt1157.kt") public void testKt1157() throws Exception { runTest("compiler/testData/codegen/box/classes/kt1157.kt"); @@ -4839,11 +4779,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/constants/long.kt"); } - @TestMetadata("numberLiteralCoercionToInferredType.kt") - public void testNumberLiteralCoercionToInferredType() throws Exception { - runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt"); - } - @TestMetadata("privateConst.kt") public void testPrivateConst() throws Exception { runTest("compiler/testData/codegen/box/constants/privateConst.kt"); @@ -8261,24 +8196,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Anonymous extends AbstractIrCodegenBoxWasmTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath); - } - - public void testAllFilesPresentInAnonymous() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @TestMetadata("simple.kt") - public void testSimple() throws Exception { - runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt"); - } - } - @TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class)