diff --git a/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt b/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt index 6ced15c1fd5..a720d896493 100644 --- a/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt +++ b/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt @@ -2,6 +2,8 @@ // See KT-44312 // IGNORE_BACKEND_K2: ANY // ^ TODO decide if we want to fix KT-42020 for FIR as well +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 open class Base { fun foo(x: T) {} @@ -66,4 +68,4 @@ open class Outer { class OuterDerived : Outer() { inner class InnerDerived : Inner() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/classes/classMembers.kt b/compiler/testData/ir/irText/classes/classMembers.kt index 3781be95d42..8041a5f8440 100644 --- a/compiler/testData/ir/irText/classes/classMembers.kt +++ b/compiler/testData/ir/irText/classes/classMembers.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class C(x: Int, val y: Int, var z: Int = 1) { constructor() : this(0, 0, 0) {} diff --git a/compiler/testData/ir/irText/classes/classes.kt b/compiler/testData/ir/irText/classes/classes.kt index f754d67f167..3526ee243f1 100644 --- a/compiler/testData/ir/irText/classes/classes.kt +++ b/compiler/testData/ir/irText/classes/classes.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class TestClass diff --git a/compiler/testData/ir/irText/classes/cloneable.kt b/compiler/testData/ir/irText/classes/cloneable.kt index 72f4b967cb6..b4a7fd88722 100644 --- a/compiler/testData/ir/irText/classes/cloneable.kt +++ b/compiler/testData/ir/irText/classes/cloneable.kt @@ -1,5 +1,8 @@ // FIR_IDENTICAL // SKIP_KLIB_TEST +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + class A : Cloneable interface I : Cloneable @@ -8,4 +11,4 @@ class C : I class OC : I { override fun clone(): OC = OC() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt index cf06270263d..5787c8994c4 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt @@ -1,5 +1,8 @@ +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + data class Test1(val x: Int, val y: String, val z: Any) data class Test2(val x: Any?) -data class Test3(val d: Double, val dn: Double?, val f: Float, val df: Float?) \ No newline at end of file +data class Test3(val d: Double, val dn: Double?, val f: Float, val df: Float?) diff --git a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt index b59f1d58e8d..2bfaa263787 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // SKIP_KLIB_TEST +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 sealed class A : CharSequence { data class B(val c: CharSequence) : A(), CharSequence by c diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt b/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt index 1c9b7ac1909..2b55cebb60e 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt @@ -1,4 +1,6 @@ // SKIP_KT_DUMP +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 data class A(val x: Int) { val String.x: String get() = this diff --git a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt index 38b6584498a..55c1d81556a 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt @@ -1,7 +1,10 @@ +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + // This test emulates 'allopen' compiler plugin. @Suppress("INCOMPATIBLE_MODIFIERS") open data class ValidatedProperties( open val test1: String, open val test2: String -) \ No newline at end of file +) diff --git a/compiler/testData/ir/irText/classes/enum.kt b/compiler/testData/ir/irText/classes/enum.kt index 33a15bf45a2..8828814e243 100644 --- a/compiler/testData/ir/irText/classes/enum.kt +++ b/compiler/testData/ir/irText/classes/enum.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class TestEnum1 { TEST1, TEST2 diff --git a/compiler/testData/ir/irText/classes/enumClassModality.kt b/compiler/testData/ir/irText/classes/enumClassModality.kt index 41db2a8f397..29c3d6749f9 100644 --- a/compiler/testData/ir/irText/classes/enumClassModality.kt +++ b/compiler/testData/ir/irText/classes/enumClassModality.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class TestFinalEnum1 { X1 } diff --git a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt index 5a3f2b36d99..1eaa4eb189f 100644 --- a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt +++ b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class A { X("asd"), Y() { diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt index a24de8868f3..0aa402785a1 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class Test0(val x: Int) { ZERO; diff --git a/compiler/testData/ir/irText/classes/initBlock.kt b/compiler/testData/ir/irText/classes/initBlock.kt index b2216c65ca7..f330d29bc0d 100644 --- a/compiler/testData/ir/irText/classes/initBlock.kt +++ b/compiler/testData/ir/irText/classes/initBlock.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Test1 { init { diff --git a/compiler/testData/ir/irText/classes/initValInLambda.kt b/compiler/testData/ir/irText/classes/initValInLambda.kt index 2428325566c..bfbde0ac1a6 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.kt +++ b/compiler/testData/ir/irText/classes/initValInLambda.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class TestInitValInLambdaCalledOnce { val x: Int init { diff --git a/compiler/testData/ir/irText/classes/inlineClass.kt b/compiler/testData/ir/irText/classes/inlineClass.kt index 7e09b3520cd..de15f58e63b 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.kt +++ b/compiler/testData/ir/irText/classes/inlineClass.kt @@ -1,3 +1,5 @@ // !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 -inline class Test(val x: Int) \ No newline at end of file +inline class Test(val x: Int) diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt index a22cb523650..34de26d4f4e 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface IFoo { fun foo() diff --git a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt index 78eb0963d7b..81e5baa3dcd 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 annotation class TestAnn(val x: String) diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt index 0bfb1c93044..20446565c20 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 annotation class Ann diff --git a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt index 89cd342e3b8..9a5c379d83d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 annotation class TestAnn(val x: String) diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt index a44be273e11..3af7753f09e 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class En { A, B, C, D } diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt index 0156cf3c55c..d33132a30c4 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 annotation class A(val x: String) diff --git a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt index 411240b887b..66bb564b098 100644 --- a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt +++ b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt @@ -1,4 +1,7 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + annotation class A1 annotation class A2 annotation class A3 diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.kt b/compiler/testData/ir/irText/declarations/classLevelProperties.kt index e7e09c07ebf..16d60380ec4 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.kt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class C { val test1 = 0 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt index ae97e17f093..f2dff2e9e81 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Outer { val x: Int = 1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt index 196e2a447f4..86f97d0b635 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 class Context { fun foo() = 1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt index 040722f8f7b..c626b9384d8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class O(val o: String) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/function.kt b/compiler/testData/ir/irText/declarations/contextReceivers/function.kt index 33ebb022b98..24146d8f967 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class C { val c = 42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt index 198359b89bb..c1a1494714a 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Param class C { diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt index 85408477142..508a1b5a8f4 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt @@ -1,6 +1,9 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + context(T) class A context(Collection

) class B

@@ -11,4 +14,4 @@ fun Int.foo() { fun Collection.bar() { B() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt index c1b6118f103..ec0355d6e7f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface Lazy diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt index 59e2f4116bd..109c7d8efd2 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Context diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt index b42c2c698cd..b97b40593e0 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 context(Int, String) fun foo(): Int { diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt index e5966b53400..75585f99fee 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt @@ -1,8 +1,8 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // !DIAGNOSTICS: -UNUSED_PARAMETER -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface NumberOperations { fun Number.plus(other: Number): Number diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt index 041c2ecaef1..66c34b2c372 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 class A(val a: T) class B(val b: Any) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt index d44d68a64f5..b9a7d6086f8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 context(T) fun useContext(block: (T) -> Unit) { } diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.kt b/compiler/testData/ir/irText/declarations/delegatedProperties.kt index 012a500656d..a1b3a919bad 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.kt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 val test1 by lazy { 42 } diff --git a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt index cea1ea376af..04c808afe5b 100644 --- a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt +++ b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + inline class IT(val x: Int) inline class InlineMutableSet(private val ms: MutableSet) : MutableSet { diff --git a/compiler/testData/ir/irText/declarations/kt27005.kt b/compiler/testData/ir/irText/declarations/kt27005.kt index ed083c8369f..607ca03aba2 100644 --- a/compiler/testData/ir/irText/declarations/kt27005.kt +++ b/compiler/testData/ir/irText/declarations/kt27005.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 suspend fun foo() = baz() suspend fun bar() = baz() diff --git a/compiler/testData/ir/irText/declarations/kt45308.kt b/compiler/testData/ir/irText/declarations/kt45308.kt index 0e759fa1962..55509470ccc 100644 --- a/compiler/testData/ir/irText/declarations/kt45308.kt +++ b/compiler/testData/ir/irText/declarations/kt45308.kt @@ -1,4 +1,7 @@ // SKIP_KT_DUMP +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + // MODULE: a // FILE: a.kt package a diff --git a/compiler/testData/ir/irText/declarations/kt47527.kt b/compiler/testData/ir/irText/declarations/kt47527.kt index 05cdfee444d..febc770d387 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.kt +++ b/compiler/testData/ir/irText/declarations/kt47527.kt @@ -1,7 +1,7 @@ // ISSUE: KT-47527 // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test_1(value: Any?): String? = value?.let { return "O" } fun test_2(value: Any?): String? = run { diff --git a/compiler/testData/ir/irText/declarations/kt52677.kt b/compiler/testData/ir/irText/declarations/kt52677.kt index f4f9c8d9b04..d87dd2816e9 100644 --- a/compiler/testData/ir/irText/declarations/kt52677.kt +++ b/compiler/testData/ir/irText/declarations/kt52677.kt @@ -1,6 +1,6 @@ // ISSUE: KT-52677 -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 @Target(AnnotationTarget.TYPE) annotation class MySerializable(val c: kotlin.reflect.KClass<*>) diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt index 6c0c45b6d19..f8730b7ab93 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test1() { val x by lazy { 42 } diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt index 052f5f9ca25..ba443a38b48 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt @@ -2,6 +2,9 @@ // IGNORE_BACKEND_K2: ANY // FIR status: In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177). +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + expect enum class MyEnum { FOO, BAR @@ -11,4 +14,4 @@ actual enum class MyEnum { FOO, BAR, BAZ -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.kt b/compiler/testData/ir/irText/declarations/packageLevelProperties.kt index f79caf5183f..6002807ef6c 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.kt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 val test1 = 0 diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt index 08fc7e3ab1b..124a7506f2a 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt @@ -1 +1,4 @@ -data class Test(val x: T, val y: String = "") \ No newline at end of file +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + +data class Test(val x: T, val y: String = "") diff --git a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt index 452a65b32d9..6ca1ce38985 100644 --- a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt +++ b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt @@ -1,6 +1,8 @@ // IGNORE_BACKEND_K2: ANY // accessing uninitialized parameter is illegal in FIR // LANGUAGE: -ProhibitIllegalValueParameterUsageInDefaultArguments +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 fun f( f1: () -> String = { f2() }, diff --git a/compiler/testData/ir/irText/errors/unresolvedReference.kt b/compiler/testData/ir/irText/errors/unresolvedReference.kt index f363a1414f0..b7ed945a079 100644 --- a/compiler/testData/ir/irText/errors/unresolvedReference.kt +++ b/compiler/testData/ir/irText/errors/unresolvedReference.kt @@ -1,6 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // !IGNORE_ERRORS val test1 = unresolved diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt index 0dee75760c1..e6fcf9086de 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun Number.convert(): R = TODO() diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.kt b/compiler/testData/ir/irText/expressions/arrayAssignment.kt index 008597d919c..d5bb94ddea1 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.kt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test() { val x = intArrayOf(1, 2, 3) diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt index 0cf32ac3980..bfc1408b017 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun foo(): IntArray = intArrayOf(1, 2, 3) fun bar() = 42 diff --git a/compiler/testData/ir/irText/expressions/badBreakContinue.kt b/compiler/testData/ir/irText/expressions/badBreakContinue.kt index bc176626ae2..d0be6d9ea22 100644 --- a/compiler/testData/ir/irText/expressions/badBreakContinue.kt +++ b/compiler/testData/ir/irText/expressions/badBreakContinue.kt @@ -1,6 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // !IGNORE_ERRORS fun test1() { diff --git a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt index 0a5de35b758..44be979f371 100644 --- a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt +++ b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt @@ -1,7 +1,7 @@ // LANGUAGE: +BreakContinueInInlineLambdas // IGNORE_BACKEND_K2: JVM_IR -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // !IGNORE_ERRORS // WITH_STDLIB diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt index a9abfff7a37..24bf7714d88 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + fun test1(c: Boolean?) { L@ while (true) { L2@while (c ?: break) @@ -32,4 +35,4 @@ fun test5() { } while (if (j >= 3) false else break) // break@Inner if (i == 3) break } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt b/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt index b481024b3b6..e04505c69b1 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +AllowBreakAndContinueInsideWhen -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun testBreakFor() { val xs = IntArray(10) { i -> i } diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt index 46923f94e40..587e7330e3b 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt @@ -1,6 +1,6 @@ // SKIP_KT_DUMP -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class ObjectAssert { fun describedAs(description: String?, vararg args: Any?): ObjectAssert? = null diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.kt b/compiler/testData/ir/irText/expressions/catchParameterAccess.kt index f57ef20c307..e8e6cfbcfef 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.kt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test(f: () -> Unit) = try { f() } catch (e: Exception) { throw e } diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt index 853a7550631..4de0b349cf9 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class X { diff --git a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt index cbdb93e279c..12cbe9695eb 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt +++ b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class MyEnum { Z { diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt index b43513883bc..4b25ae6a3a8 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class A { V1 } diff --git a/compiler/testData/ir/irText/expressions/for.kt b/compiler/testData/ir/irText/expressions/for.kt index 658473e19ee..543479b295e 100644 --- a/compiler/testData/ir/irText/expressions/for.kt +++ b/compiler/testData/ir/irText/expressions/for.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun testEmpty(ss: List) { for (s in ss); diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt index 6dbfc40508d..0cf433ed8eb 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 object FiveTimes diff --git a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt index 2b5c5a0c237..a36017ae06f 100644 --- a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt +++ b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + fun testSimple() = Box(2L * 3) inline fun testArray(n: Int, crossinline block: () -> T): Array { diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.kt b/compiler/testData/ir/irText/expressions/incrementDecrement.kt index f9fc692146c..3b6a8a33ec7 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.kt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 var p: Int = 0 val arr = intArrayOf(1, 2, 3) diff --git a/compiler/testData/ir/irText/expressions/kt30020.kt b/compiler/testData/ir/irText/expressions/kt30020.kt index 4ea2b7539ad..568eaad0b65 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.kt +++ b/compiler/testData/ir/irText/expressions/kt30020.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface X { val xs: MutableList diff --git a/compiler/testData/ir/irText/expressions/kt30796.kt b/compiler/testData/ir/irText/expressions/kt30796.kt index 230b280bdff..dabd5b33bfe 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.kt +++ b/compiler/testData/ir/irText/expressions/kt30796.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun magic(): T = throw Exception() diff --git a/compiler/testData/ir/irText/expressions/kt37570.kt b/compiler/testData/ir/irText/expressions/kt37570.kt index c5435a82164..1ce6666adc7 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.kt +++ b/compiler/testData/ir/irText/expressions/kt37570.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun a() = "string" diff --git a/compiler/testData/ir/irText/expressions/kt48708.kt b/compiler/testData/ir/irText/expressions/kt48708.kt index f4c58489be4..bb01b35cd04 100644 --- a/compiler/testData/ir/irText/expressions/kt48708.kt +++ b/compiler/testData/ir/irText/expressions/kt48708.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // ISSUE: KT-48708 fun test(b: Boolean) { diff --git a/compiler/testData/ir/irText/expressions/kt48806.kt b/compiler/testData/ir/irText/expressions/kt48806.kt index 04774cdd98b..37aba4022df 100644 --- a/compiler/testData/ir/irText/expressions/kt48806.kt +++ b/compiler/testData/ir/irText/expressions/kt48806.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // ISSUE: KT-48806 class A { diff --git a/compiler/testData/ir/irText/expressions/kt51036.kt b/compiler/testData/ir/irText/expressions/kt51036.kt index 8765745e5fd..65e7a58f288 100644 --- a/compiler/testData/ir/irText/expressions/kt51036.kt +++ b/compiler/testData/ir/irText/expressions/kt51036.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // SKIP_KT_DUMP class A { diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.kt b/compiler/testData/ir/irText/expressions/objectAsCallable.kt index 9f25efcfe35..35167f2edaf 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.kt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 object A diff --git a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt index 8dfa688275e..4e188cacd0f 100644 --- a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt +++ b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt @@ -1,6 +1,9 @@ // IGNORE_BACKEND_K2: ANY // FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + val test1: Long = 42 val test2: Short = 42 val test3: Byte = 42 diff --git a/compiler/testData/ir/irText/expressions/safeCalls.kt b/compiler/testData/ir/irText/expressions/safeCalls.kt index 82943638a94..ce43d348b38 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.kt +++ b/compiler/testData/ir/irText/expressions/safeCalls.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + class Ref(var value: Int) interface IHost { diff --git a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt index c4ab30c0720..324ea7fd039 100644 --- a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt +++ b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion // FILE: signedToUnsignedConversions_annotation.kt diff --git a/compiler/testData/ir/irText/expressions/smartCasts.kt b/compiler/testData/ir/irText/expressions/smartCasts.kt index 4ea76eaa789..300a3cf5cba 100644 --- a/compiler/testData/ir/irText/expressions/smartCasts.kt +++ b/compiler/testData/ir/irText/expressions/smartCasts.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun expectsString(s: String) {} fun expectsInt(i: Int) {} diff --git a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt index 4da20e44ab3..c9b3c922e20 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt +++ b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt @@ -5,7 +5,7 @@ fun useSuspendVararg(vararg sfn: suspend () -> Unit) {} fun testSuspendConversionInVarargElementsSome( f1: () -> Unit, - sf2: suspend () -> Unit + sf2: suspend () -> Unit, f3: () -> Unit, ) { useSuspendVararg(f1, sf2, f3) diff --git a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt index 097dc50e915..bb84e7adfc9 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt +++ b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 val n: Any? = null diff --git a/compiler/testData/ir/irText/expressions/throw.kt b/compiler/testData/ir/irText/expressions/throw.kt index d29f46547af..24d56d135b5 100644 --- a/compiler/testData/ir/irText/expressions/throw.kt +++ b/compiler/testData/ir/irText/expressions/throw.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + fun test1() { throw Throwable() } @@ -6,4 +9,4 @@ fun testImplicitCast(a: Any) { if (a is Throwable) { throw a } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/tryCatch.kt b/compiler/testData/ir/irText/expressions/tryCatch.kt index c2d814a2a8f..6b3edd9b9af 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.kt +++ b/compiler/testData/ir/irText/expressions/tryCatch.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test1() { try { diff --git a/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt b/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt index beff2c1b347..e0bb8432af2 100644 --- a/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt +++ b/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // WITH_STDLIB val testSimpleUIntLiteral = 1u diff --git a/compiler/testData/ir/irText/expressions/values.kt b/compiler/testData/ir/irText/expressions/values.kt index 212382d6a75..c98a648a187 100644 --- a/compiler/testData/ir/irText/expressions/values.kt +++ b/compiler/testData/ir/irText/expressions/values.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class Enum { A } object A diff --git a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt index 5fe972f8cd6..72358849742 100644 --- a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt +++ b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun testScalar(a: Any): IntArray { if (a !is Int) return intArrayOf() diff --git a/compiler/testData/ir/irText/expressions/when.kt b/compiler/testData/ir/irText/expressions/when.kt index a330854ae67..0e65bb376f6 100644 --- a/compiler/testData/ir/irText/expressions/when.kt +++ b/compiler/testData/ir/irText/expressions/when.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 object A diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt index 6b3c25d14e5..f2066b60025 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun run(block: () -> Unit) {} diff --git a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt index b85c4d4741e..9b6dea1c212 100644 --- a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt +++ b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class En { A, B, C } diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.kt b/compiler/testData/ir/irText/firProblems/ArrayMap.kt index 93349ba9f21..7ca2a727fb7 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.kt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 sealed class ArrayMap : Iterable { abstract val size: Int diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt index 22750ea1c63..8d3eb59d6ff 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface IrType diff --git a/compiler/testData/ir/irText/firProblems/FirBuilder.kt b/compiler/testData/ir/irText/firProblems/FirBuilder.kt index 64099956b25..387b33ae608 100644 --- a/compiler/testData/ir/irText/firProblems/FirBuilder.kt +++ b/compiler/testData/ir/irText/firProblems/FirBuilder.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + // MODULE: m1 // FILE: BaseFirBuilder.kt @@ -12,4 +15,4 @@ abstract class BaseFirBuilder { open class BaseConverter : BaseFirBuilder() -class DeclarationsConverter : BaseConverter() \ No newline at end of file +class DeclarationsConverter : BaseConverter() diff --git a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt index 8fa57adb97a..5e9498307f2 100644 --- a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt +++ b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt @@ -1,6 +1,6 @@ +// TARGET_BACKEND: JVM_IR // SKIP_KLIB_TEST -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 + // FILE: Collector.java public class Collector { diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt index 061df64890c..a87ccaae16d 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt @@ -1,8 +1,8 @@ // WITH_STDLIB // FULL_JDK // JVM_TARGET: 1.8 -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface SymbolOwner> diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt index d9b3a23ee72..3b9727b2488 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun foo(s: String?): String { s?.let { it -> diff --git a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt index 7ea7e836678..35549f1dea1 100644 --- a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt +++ b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface SimpleTypeMarker diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt index ffb0aaa0f29..71df8666fa3 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Flaf(val javaName: String) { diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt b/compiler/testData/ir/irText/firProblems/kt55458.kt index 5bbcc121bb8..2e91429396a 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.kt +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun main() { val (a: Any, _) = 1 to 2 diff --git a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt index 03d9baf6be5..00d134cb5e8 100644 --- a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt +++ b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 // KT-50774 class Wrapper(var baseUrl: String) diff --git a/compiler/testData/ir/irText/firProblems/readWriteProperty.kt b/compiler/testData/ir/irText/firProblems/readWriteProperty.kt index e30b1775aa6..8c276a7e4a3 100644 --- a/compiler/testData/ir/irText/firProblems/readWriteProperty.kt +++ b/compiler/testData/ir/irText/firProblems/readWriteProperty.kt @@ -10,7 +10,7 @@ class SettingType( ) class SettingReference>( - var t : T + var t : T, var v : V ) diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt index 7962b1dc252..726d34637d0 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // FULL_JDK -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface Something diff --git a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt index 1eb7484b5ca..e2d91559d5c 100644 --- a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt +++ b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt @@ -1,6 +1,5 @@ // SKIP_KLIB_TEST -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// TARGET_BACKEND: JVM_IR // WITH_REFLECT // FULL_JDK diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt index aafd5961885..79113da3eb3 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class EE(val myName: String = this.toString().lowercase()) { ENTRY; diff --git a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt index e9a40f5d8c0..23b9c5c073f 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 abstract class Visibility(val name: String, val isPublicAPI: Boolean) { open val internalDisplayName: String diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.ir.txt new file mode 100644 index 00000000000..1b4eb10ccf6 --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.ir.txt @@ -0,0 +1,17 @@ +FILE fqName: fileName:/dynamicArrayAssignment.kt + FUN name:testArrayAssignment visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + DYN_OP operator=EQ type=dynamic + receiver: DYN_OP operator=ARRAY_ACCESS type=dynamic + receiver: GET_VAR 'd: dynamic declared in .testArrayAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="KEY" + 0: CONST Int type=kotlin.Int value=1 + FUN name:testArrayAssignmentFake visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + DYN_OP operator=INVOKE type=dynamic + receiver: DYN_MEMBER memberName='set' type=dynamic + GET_VAR 'd: dynamic declared in .testArrayAssignmentFake' type=dynamic origin=null + 0: CONST String type=kotlin.String value="KEY" + 1: CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt new file mode 100644 index 00000000000..c1455578729 --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt @@ -0,0 +1,17 @@ +FILE fqName: fileName:/dynamicElvisOperator.kt + FUN name:test visibility:public modality:FINAL <> (d:dynamic) returnType:dynamic + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun test (d: dynamic): dynamic declared in ' + BLOCK type=dynamic origin=ELVIS + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] + GET_VAR 'd: dynamic declared in .test' type=dynamic origin=null + WHEN type=dynamic origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST String type=kotlin.String value="other" + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt index e502cf32ade..643c44bfde5 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt @@ -1,2 +1,4 @@ // TARGET_BACKEND: JS_IR +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 fun test(d: dynamic) = d!! diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt new file mode 100644 index 00000000000..73e3bb4474a --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt @@ -0,0 +1,27 @@ +FILE fqName: fileName:/dynamicMemberAssignment.kt + FUN name:testMemberAssignment visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + DYN_OP operator=EQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=kotlin.Unit + GET_VAR 'd: dynamic declared in .testMemberAssignment' type=dynamic origin=null + 0: CONST Int type=kotlin.Int value=1 + FUN name:testSafeMemberAssignment visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=EQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=kotlin.Unit + GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + 0: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt new file mode 100644 index 00000000000..895604dcc6d --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt @@ -0,0 +1,107 @@ +FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt + FUN name:testAugmentedMemberAssignment visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + DYN_OP operator=PLUSEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'd: dynamic declared in .testAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="+=" + DYN_OP operator=MINUSEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'd: dynamic declared in .testAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="-=" + DYN_OP operator=MULEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'd: dynamic declared in .testAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="*=" + DYN_OP operator=DIVEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'd: dynamic declared in .testAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="/=" + DYN_OP operator=MODEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'd: dynamic declared in .testAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="%=" + FUN name:testSafeAugmentedMemberAssignment visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Unit + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=PLUSEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="+=" + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=MINUSEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="-=" + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=MULEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="*=" + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=DIVEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="/=" + BLOCK type=kotlin.Unit origin=SAFE_CALL + VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:dynamic [val] + GET_VAR 'd: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ + arg0: GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg1: CONST Null type=kotlin.Nothing? value=null + then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + CONST Null type=kotlin.Nothing? value=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: DYN_OP operator=MODEQ type=kotlin.Unit + receiver: DYN_MEMBER memberName='m' type=dynamic + GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + 0: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.ir.txt new file mode 100644 index 00000000000..d6b9b840b05 --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.ir.txt @@ -0,0 +1,29 @@ +FILE fqName: fileName:/dynamicWithSmartCast.kt + FUN name:test1 visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Int + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun test1 (d: dynamic): kotlin.Int declared in ' + WHEN type=kotlin.Int origin=IF + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String + GET_VAR 'd: dynamic declared in .test1' type=dynamic origin=null + then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY + $this: TYPE_OP type=kotlin.String origin=IMPLICIT_DYNAMIC_CAST typeOperand=kotlin.String + GET_VAR 'd: dynamic declared in .test1' type=dynamic origin=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Int type=kotlin.Int value=-1 + FUN name:test2 visibility:public modality:FINAL <> (d:dynamic) returnType:kotlin.Int + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun test2 (d: dynamic): kotlin.Int declared in ' + WHEN type=kotlin.Int origin=IF + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Array<*> + GET_VAR 'd: dynamic declared in .test2' type=dynamic origin=null + then: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY + $this: TYPE_OP type=kotlin.Array origin=IMPLICIT_DYNAMIC_CAST typeOperand=kotlin.Array + GET_VAR 'd: dynamic declared in .test2' type=dynamic origin=null + BRANCH + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Int type=kotlin.Int value=-1 diff --git a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt new file mode 100644 index 00000000000..5580ad4f811 --- /dev/null +++ b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt @@ -0,0 +1,78 @@ +FILE fqName: fileName:/implicitCastToDynamic.kt + PROPERTY name:d1 visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:d1 type:dynamic visibility:private [final,static] + EXPRESSION_BODY + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:dynamic + correspondingProperty: PROPERTY name:d1 visibility:public modality:FINAL [val] + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): dynamic declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d1 type:dynamic visibility:private [final,static]' type=dynamic origin=null + PROPERTY name:p visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final,static] + EXPRESSION_BODY + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int + correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val] + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final,static]' type=kotlin.Int origin=null + PROPERTY name:d2 visibility:public modality:FINAL [var] + FIELD PROPERTY_BACKING_FIELD name:d2 type:dynamic visibility:private [static] + EXPRESSION_BODY + CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:dynamic + correspondingProperty: PROPERTY name:d2 visibility:public modality:FINAL [var] + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): dynamic declared in ' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d2 type:dynamic visibility:private [static]' type=dynamic origin=null + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:dynamic) returnType:kotlin.Unit + correspondingProperty: PROPERTY name:d2 visibility:public modality:FINAL [var] + VALUE_PARAMETER name: index:0 type:dynamic + BLOCK_BODY + SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d2 type:dynamic visibility:private [static]' type=kotlin.Unit origin=null + value: GET_VAR ': dynamic declared in .' type=dynamic origin=null + FUN name:withDynamic visibility:public modality:FINAL <> (d:dynamic) returnType:dynamic + VALUE_PARAMETER name:d index:0 type:dynamic + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun withDynamic (d: dynamic): dynamic declared in ' + GET_VAR 'd: dynamic declared in .withDynamic' type=dynamic origin=null + FUN name:test1 visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit + VALUE_PARAMETER name:s index:0 type:kotlin.String + BLOCK_BODY + CALL 'public final fun withDynamic (d: dynamic): dynamic declared in ' type=dynamic origin=null + d: GET_VAR 's: kotlin.String declared in .test1' type=kotlin.String origin=null + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit + VALUE_PARAMETER name:a index:0 type:kotlin.Any + BLOCK_BODY + VAR name:d type:dynamic [val] + GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?) returnType:kotlin.Unit + VALUE_PARAMETER name:a index:0 type:kotlin.Any? + BLOCK_BODY + VAR name:d type:dynamic [val] + GET_VAR 'a: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null + FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Any, s:kotlin.String, na:kotlin.Any?) returnType:kotlin.Unit + VALUE_PARAMETER name:a index:0 type:kotlin.Any + VALUE_PARAMETER name:s index:1 type:kotlin.String + VALUE_PARAMETER name:na index:2 type:kotlin.Any? + BLOCK_BODY + VAR name:d type:dynamic [var] + CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY + SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + GET_VAR 'a: kotlin.Any declared in .test4' type=kotlin.Any origin=null + SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + GET_VAR 'na: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null + SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + GET_VAR 's: kotlin.String declared in .test4' type=kotlin.String origin=null + FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Any, s:kotlin.String, na:kotlin.Any?) returnType:kotlin.Unit + VALUE_PARAMETER name:a index:0 type:kotlin.Any + VALUE_PARAMETER name:s index:1 type:kotlin.String + VALUE_PARAMETER name:na index:2 type:kotlin.Any? + BLOCK_BODY + CALL 'public final fun (: dynamic): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ + : GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null + CALL 'public final fun (: dynamic): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ + : GET_VAR 'na: kotlin.Any? declared in .test5' type=kotlin.Any? origin=null + CALL 'public final fun (: dynamic): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ + : GET_VAR 's: kotlin.String declared in .test5' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/js/external/kt38765.ir.txt b/compiler/testData/ir/irText/js/external/kt38765.ir.txt new file mode 100644 index 00000000000..a27fc09557c --- /dev/null +++ b/compiler/testData/ir/irText/js/external/kt38765.ir.txt @@ -0,0 +1,133 @@ +FILE fqName:events fileName:/kt38765.kt + CLASS CLASS name:internal modality:OPEN visibility:public [external] superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal + CONSTRUCTOR visibility:public <> () returnType:events.internal [external,primary] + CLASS CLASS name:EventEmitterP modality:OPEN visibility:public [external] superTypes:[events.internal] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.EventEmitterP + CONSTRUCTOR visibility:public <> () returnType:events.internal.EventEmitterP [external,primary] + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS CLASS name:EventEmitterS modality:OPEN visibility:public [external] superTypes:[events.internal] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.EventEmitterS + CONSTRUCTOR visibility:public <> (a:kotlin.Any) returnType:events.internal.EventEmitterS [external] + VALUE_PARAMETER name:a index:0 type:kotlin.Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS OBJECT name:NestedExternalObject modality:FINAL visibility:public [external] superTypes:[events.internal] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalObject + CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalObject [external,primary] + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS ENUM_CLASS name:NestedExternalEnum modality:FINAL visibility:public [external] superTypes:[kotlin.Enum] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalEnum + CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalEnum [external,primary] + ENUM_ENTRY name:A + init: EXPRESSION_BODY + ENUM_CONSTRUCTOR_CALL 'private constructor () [external,primary] declared in events.internal.NestedExternalEnum' + ENUM_ENTRY name:B + init: EXPRESSION_BODY + ENUM_CONSTRUCTOR_CALL 'private constructor () [external,primary] declared in events.internal.NestedExternalEnum' + PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [external,fake_override,val] + overridden: + public final name: kotlin.String [val] + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [external,fake_override] + correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [external,fake_override,val] + overridden: + public final fun (): kotlin.String declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [external,fake_override,val] + overridden: + public final ordinal: kotlin.Int [val] + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [external,fake_override] + correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [external,fake_override,val] + overridden: + public final fun (): kotlin.Int declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:events.internal.NestedExternalEnum) returnType:kotlin.Int [external,fake_override,operator] + overridden: + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + VALUE_PARAMETER name:other index:0 type:events.internal.NestedExternalEnum + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [external,fake_override] + overridden: + public final fun hashCode (): kotlin.Int declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Enum + $this: VALUE_PARAMETER name: type:kotlin.Enum + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array [external] + SYNTHETIC_BODY kind=ENUM_VALUES + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:events.internal.NestedExternalEnum [external] + VALUE_PARAMETER name:value index:0 type:kotlin.String + SYNTHETIC_BODY kind=ENUM_VALUEOF + PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [external,val] + FUN ENUM_CLASS_SPECIAL_MEMBER name: visibility:public modality:FINAL <> () returnType:kotlin.enums.EnumEntries [external] + correspondingProperty: PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [external,val] + SYNTHETIC_BODY kind=ENUM_ENTRIES + CLASS INTERFACE name:NestedExternalInterface modality:ABSTRACT visibility:public [external] superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalInterface + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/js/external/kt38765.kt b/compiler/testData/ir/irText/js/external/kt38765.kt index f88c4a166a8..2be973c686d 100644 --- a/compiler/testData/ir/irText/js/external/kt38765.kt +++ b/compiler/testData/ir/irText/js/external/kt38765.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JS_IR +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 package events external open class internal { diff --git a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt new file mode 100644 index 00000000000..019ffaf2f3a --- /dev/null +++ b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt @@ -0,0 +1,74 @@ +FILE fqName:foo fileName:/nativeNativeKotlin.kt + CLASS CLASS name:A modality:OPEN visibility:public [external] superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.A + CONSTRUCTOR visibility:public <> () returnType:foo.A [external,primary] + FUN name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [external] + $this: VALUE_PARAMETER name: type:foo.A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS CLASS name:B modality:OPEN visibility:public [external] superTypes:[foo.A] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.B + CONSTRUCTOR visibility:public <> () returnType:foo.B [external,primary] + FUN name:bar visibility:public modality:FINAL <> ($this:foo.B) returnType:kotlin.String [external] + $this: VALUE_PARAMETER name: type:foo.B + FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [external,fake_override] + overridden: + public final fun foo (): kotlin.String [external] declared in foo.A + $this: VALUE_PARAMETER name: type:foo.A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in foo.A + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [external,fake_override] + overridden: + public open fun hashCode (): kotlin.Int [external,fake_override] declared in foo.A + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] + overridden: + public open fun toString (): kotlin.String [external,fake_override] declared in foo.A + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.C + CONSTRUCTOR visibility:public <> () returnType:foo.C [primary] + BLOCK_BODY + DELEGATING_CONSTRUCTOR_CALL 'public constructor () [external,primary] declared in foo.B' + INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B]' + FUN FAKE_OVERRIDE name:bar visibility:public modality:FINAL <> ($this:foo.B) returnType:kotlin.String [fake_override] + overridden: + public final fun bar (): kotlin.String [external] declared in foo.B + $this: VALUE_PARAMETER name: type:foo.B + FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [fake_override] + overridden: + public final fun foo (): kotlin.String [external,fake_override] declared in foo.B + $this: VALUE_PARAMETER name: type:foo.A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in foo.B + $this: VALUE_PARAMETER name: type:kotlin.Any + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] + overridden: + public open fun hashCode (): kotlin.Int [external,fake_override] declared in foo.B + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] + overridden: + public open fun toString (): kotlin.String [external,fake_override] declared in foo.B + $this: VALUE_PARAMETER name: type:kotlin.Any + FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String + BLOCK_BODY + VAR name:c type:foo.C [val] + CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.C' type=foo.C origin=null + RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo' + CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt index a487b457c69..4fb2bd03162 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 val anonymous = fun() { println() } diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt index 21022a7b9e4..3569e1148e6 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 + data class A(val x: Int, val y: Int) -var fn: (A) -> Int = { (_, y) -> 42 + y } \ No newline at end of file +var fn: (A) -> Int = { (_, y) -> 42 + y } diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.kt b/compiler/testData/ir/irText/lambdas/extensionLambda.kt index 5e6114fd920..86125a9dda3 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.kt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.kt @@ -1,5 +1,5 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test1() = "42".run { length } diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt index c56f635e717..907588e0011 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 object A object B diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt index d0a63df8848..40f9608a9a3 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test0() { run { diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt index 65a8725370d..f02aa672943 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 interface CPointed diff --git a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt index 47d408062af..c864c3f3e19 100644 --- a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt +++ b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun foo(): (X) -> Y = TODO() interface Inv2 diff --git a/compiler/testData/ir/irText/singletons/enumEntry.kt b/compiler/testData/ir/irText/singletons/enumEntry.kt index 6a6aea656f1..8fcd718cf9e 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.kt +++ b/compiler/testData/ir/irText/singletons/enumEntry.kt @@ -1,5 +1,5 @@ -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 enum class Z { ENTRY { diff --git a/compiler/testData/ir/irText/stubs/constFromBuiltins.kt b/compiler/testData/ir/irText/stubs/constFromBuiltins.kt index 0e31ceff5aa..8ec453cf42d 100644 --- a/compiler/testData/ir/irText/stubs/constFromBuiltins.kt +++ b/compiler/testData/ir/irText/stubs/constFromBuiltins.kt @@ -1,5 +1,4 @@ // DUMP_EXTERNAL_CLASS: kotlin/Int -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// TARGET_BACKEND: JVM_IR val test = Int.MIN_VALUE diff --git a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt index 3cdf31bb63d..5b6c5f344e6 100644 --- a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt +++ b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 + // MODULE: m1 // FILE: genericClassInDifferentModule_m1.kt @@ -20,4 +23,4 @@ class Derived1(x: T) : Base(x) { override var Z.exn: T get() = x set(value) {} -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt index 60d896f0df1..2946d404981 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt @@ -1,6 +1,6 @@ // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt index 291c7cb2419..90c41f97be7 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt @@ -1,7 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 class Foo(var x: T) diff --git a/compiler/testData/ir/irText/types/intersectionTypeInSamType.kt b/compiler/testData/ir/irText/types/intersectionTypeInSamType.kt index 3c03f8a4a2e..455ec43bf7c 100644 --- a/compiler/testData/ir/irText/types/intersectionTypeInSamType.kt +++ b/compiler/testData/ir/irText/types/intersectionTypeInSamType.kt @@ -1,4 +1,6 @@ // SKIP_KT_DUMP +// IGNORE_BACKEND_K1: JS_IR +// IGNORE_BACKEND_K1: JS_IR_ES6 interface X interface Z diff --git a/compiler/testData/ir/irText/types/kt49526.kt b/compiler/testData/ir/irText/types/kt49526.kt index 7687a5d2d12..d2e5988b7bd 100644 --- a/compiler/testData/ir/irText/types/kt49526.kt +++ b/compiler/testData/ir/irText/types/kt49526.kt @@ -1,7 +1,7 @@ // WITH_STDLIB // SKIP_KT_DUMP -// IGNORE_BACKEND_K2: JS_IR -// IGNORE_BACKEND_K2: JS_IR_ES6 +// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND: JS_IR_ES6 fun test(): Boolean { val ref = (listOf('a') + "-")::contains diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt index 0edf2ca3642..3f0936b96f9 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/ir/AbstractIrTextTest.kt @@ -5,6 +5,7 @@ package org.jetbrains.kotlin.test.runners.ir +import org.jetbrains.kotlin.platform.TargetPlatform import org.jetbrains.kotlin.platform.jvm.JvmPlatforms import org.jetbrains.kotlin.test.Constructor import org.jetbrains.kotlin.test.TargetBackend @@ -35,24 +36,20 @@ import org.jetbrains.kotlin.test.services.sourceProviders.AdditionalDiagnosticsS import org.jetbrains.kotlin.test.services.sourceProviders.CodegenHelpersSourceFilesProvider import org.jetbrains.kotlin.test.services.sourceProviders.CoroutineHelpersSourceFilesProvider -abstract class AbstractIrTextTestBase>(targetBackend: TargetBackend) : - AbstractKotlinCompilerWithTargetBackendTest(targetBackend) -{ +abstract class AbstractIrTextTestBase>( + private val targetPlatform: TargetPlatform, + targetBackend: TargetBackend +) : AbstractKotlinCompilerWithTargetBackendTest(targetBackend) { abstract val frontend: FrontendKind<*> - abstract val frontendFacade: Constructor> - abstract val converter: Constructor> + abstract val frontendFacade: Constructor> + abstract val converter: Constructor> - open fun TestConfigurationBuilder.applyConfigurators() { - useConfigurators( - ::CommonEnvironmentConfigurator, - ::JvmEnvironmentConfigurator - ) - } + open fun TestConfigurationBuilder.applyConfigurators() {} override fun TestConfigurationBuilder.configuration() { globalDefaults { frontend = this@AbstractIrTextTestBase.frontend - targetPlatform = JvmPlatforms.defaultJvmPlatform + targetPlatform = this@AbstractIrTextTestBase.targetPlatform artifactKind = BinaryKind.NoArtifact targetBackend = this@AbstractIrTextTestBase.targetBackend dependencyKind = DependencyKind.Source @@ -63,6 +60,10 @@ abstract class AbstractIrTextTestBase>(t +DUMP_KT_IR } + useAfterAnalysisCheckers( + ::BlackBoxCodegenSuppressor + ) + applyConfigurators() useAdditionalSourceProviders( @@ -94,30 +95,47 @@ abstract class AbstractIrTextTestBase>(t ) } } -} -open class AbstractClassicJvmIrTextTest : AbstractIrTextTestBase(TargetBackend.JVM_IR) { - override val frontend: FrontendKind<*> - get() = FrontendKinds.ClassicFrontend - override val frontendFacade: Constructor> - get() = ::ClassicFrontendFacade - override val converter: Constructor> - get() = ::ClassicFrontend2IrConverter + protected fun TestConfigurationBuilder.commonConfigurationForK2(parser: FirParser) { + configureFirParser(parser) + useAfterAnalysisCheckers( + ::FirIrDumpIdenticalChecker, + ) - override fun configure(builder: TestConfigurationBuilder) { - super.configure(builder) - with(builder) { - useAfterAnalysisCheckers( - ::BlackBoxCodegenSuppressor, - ) + forTestsMatching("compiler/testData/ir/irText/properties/backingField/*") { + defaultDirectives { + LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields" + } } } } +abstract class AbstractJvmIrTextTestBase> : + AbstractIrTextTestBase(JvmPlatforms.defaultJvmPlatform, TargetBackend.JVM_IR) { + + final override fun TestConfigurationBuilder.applyConfigurators() { + useConfigurators( + ::CommonEnvironmentConfigurator, + ::JvmEnvironmentConfigurator + ) + } +} + +open class AbstractClassicJvmIrTextTest : AbstractJvmIrTextTestBase() { + + override val frontend: FrontendKind<*> + get() = FrontendKinds.ClassicFrontend + + override val frontendFacade: Constructor> + get() = ::ClassicFrontendFacade + + override val converter: Constructor> + get() = ::ClassicFrontend2IrConverter +} + open class AbstractFirIrTextTestBase( - val parser: FirParser, - targetBackend: TargetBackend -) : AbstractIrTextTestBase(targetBackend) { + private val parser: FirParser, +) : AbstractJvmIrTextTestBase() { override val frontend: FrontendKind<*> get() = FrontendKinds.FIR override val frontendFacade: Constructor> @@ -127,23 +145,11 @@ open class AbstractFirIrTextTestBase( override fun configure(builder: TestConfigurationBuilder) { super.configure(builder) - with(builder) { - configureFirParser(parser) - useAfterAnalysisCheckers( - ::FirIrDumpIdenticalChecker, - ::BlackBoxCodegenSuppressor - ) - - forTestsMatching("compiler/testData/ir/irText/properties/backingField/*") { - defaultDirectives { - LanguageSettingsDirectives.LANGUAGE with "+ExplicitBackingFields" - } - } - } + builder.commonConfigurationForK2(parser) } } -open class AbstractFirLightTreeJvmIrTextTest : AbstractFirIrTextTestBase(FirParser.LightTree, TargetBackend.JVM_IR) +open class AbstractFirLightTreeJvmIrTextTest : AbstractFirIrTextTestBase(FirParser.LightTree) @FirPsiCodegenTest -open class AbstractFirPsiJvmIrTextTest : AbstractFirIrTextTestBase(FirParser.Psi, TargetBackend.JVM_IR) +open class AbstractFirPsiJvmIrTextTest : AbstractFirIrTextTestBase(FirParser.Psi) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractClassicJsIrTextTestCase.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractClassicJsIrTextTestCase.kt deleted file mode 100644 index 560ba76b0c0..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractClassicJsIrTextTestCase.kt +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.ir - -import org.jetbrains.kotlin.ir.declarations.IrModuleFragment -import org.jetbrains.kotlin.psi2ir.Psi2IrTranslator - -abstract class AbstractClassicJsIrTextTestCase : AbstractIrTextTestCase() { - override fun doGenerateIrModule(psi2IrTranslator: Psi2IrTranslator): IrModuleFragment = - generateIrModuleWithJsResolve(myFiles.psiFiles, myEnvironment, psi2IrTranslator) -} diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt deleted file mode 100644 index 77369eeeb7b..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/ir/AbstractIrTextTestCase.kt +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.ir - -import com.intellij.openapi.util.text.StringUtil -import junit.framework.TestCase -import org.jetbrains.kotlin.backend.common.serialization.DescriptorByIdSignatureFinderImpl -import org.jetbrains.kotlin.backend.common.serialization.signature.IdSignatureDescriptor -import org.jetbrains.kotlin.cli.js.loadPluginsForTests -import org.jetbrains.kotlin.config.CompilerConfiguration -import org.jetbrains.kotlin.descriptors.ModuleDescriptor -import org.jetbrains.kotlin.descriptors.findClassAcrossModuleDependencies -import org.jetbrains.kotlin.ir.backend.js.lower.serialization.ir.JsManglerDesc -import org.jetbrains.kotlin.ir.declarations.IrClass -import org.jetbrains.kotlin.ir.declarations.IrFile -import org.jetbrains.kotlin.ir.declarations.IrModuleFragment -import org.jetbrains.kotlin.ir.declarations.impl.IrFactoryImpl -import org.jetbrains.kotlin.ir.util.* -import org.jetbrains.kotlin.name.ClassId -import org.jetbrains.kotlin.name.FqName -import org.jetbrains.kotlin.psi2ir.generators.DeclarationStubGeneratorImpl -import org.jetbrains.kotlin.test.KotlinTestUtils -import org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase -import org.jetbrains.kotlin.test.util.JUnit4Assertions -import org.jetbrains.kotlin.utils.fileUtils.withReplacedExtensionOrNull -import org.jetbrains.kotlin.utils.rethrow -import java.io.File -import java.util.regex.Pattern - -abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() { - override fun doTest(wholeFile: File, testFiles: List) { - val irModule = buildFragmentAndTestIt(wholeFile, testFiles) - doTestIrModuleDependencies(wholeFile, irModule) - } - - protected fun buildFragmentAndTestIt(wholeFile: File, testFiles: List): IrModuleFragment { - val dir = wholeFile.parentFile - val ignoreErrors = shouldIgnoreErrors(wholeFile) - val irModule = generateIrModule(ignoreErrors) - - val ktFiles = testFiles.filter { it.name.endsWith(".kt") || it.name.endsWith(".kts") } - for ((testFile, irFile) in ktFiles.zip(irModule.files)) { - doTestIrFileAgainstExpectations(dir, testFile, irFile) - } - - return irModule - } - - private fun doTestIrModuleDependencies(wholeFile: File, irModule: IrModuleFragment) { - val wholeText = wholeFile.readText() - val mangler = JsManglerDesc - val signaturer = IdSignatureDescriptor(mangler) - - val stubGenerator = DeclarationStubGeneratorImpl( - irModule.descriptor, - SymbolTable(signaturer, IrFactoryImpl), // TODO - irModule.irBuiltins, - DescriptorByIdSignatureFinderImpl(irModule.descriptor, mangler) - ) - - val path = wholeFile.path - val replacedPath = path.replace(".kt", "__") - val filesInDir = wholeFile.parentFile.listFiles() ?: return - val externalFilePaths = filesInDir.mapNotNullTo(mutableListOf()) { - if (it.path.startsWith(replacedPath)) it.path else null - } - for (externalClassFqn in parseDumpExternalClasses(wholeText)) { - val classDump = stubGenerator.generateExternalClass(irModule.descriptor, externalClassFqn).dump() - val expectedFilePath = path.replace(".kt", "__$externalClassFqn.txt") - val expectedFile = File(expectedFilePath) - externalFilePaths -= expectedFilePath - KotlinTestUtils.assertEqualsToFile(expectedFile, classDump) - } - KtUsefulTestCase.assertEmpty("The following external dump files were not built: $externalFilePaths", externalFilePaths) - } - - private fun DeclarationStubGenerator.generateExternalClass(descriptor: ModuleDescriptor, externalClassFqn: String): IrClass { - val classDescriptor = - descriptor.findClassAcrossModuleDependencies(ClassId.topLevel(FqName(externalClassFqn))) - ?: throw AssertionError("Can't find a class in external dependencies: $externalClassFqn") - - return generateMemberStub(classDescriptor) as IrClass - } - - override fun configureTestSpecific(configuration: CompilerConfiguration, testFiles: List) { - if (testFiles.any { it.name.endsWith(".kts") }) { - loadPluginsForTests(configuration) - } - } - - private fun doTestIrFileAgainstExpectations(dir: File, testFile: TestFile, irFile: IrFile) { - if (testFile.isExternalFile()) return - - val expectations = parseExpectations(dir, testFile) - val irFileDump = irFile.dump(normalizeNames = true) - - val expected = StringBuilder() - val actual = StringBuilder() - for (expectation in expectations.regexps) { - expected.append(expectation.numberOfOccurrences).append(" ").append(expectation.needle).append("\n") - val actualCount = StringUtil.findMatches(irFileDump, Pattern.compile("(" + expectation.needle + ")")).size - actual.append(actualCount).append(" ").append(expectation.needle).append("\n") - } - - for (irTreeFileLabel in expectations.irTreeFileLabels) { - val actualTrees = irFile.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber, normalizeNames = true) - KotlinTestUtils.assertEqualsToFile(irTreeFileLabel.expectedTextFile, actualTrees) - verify(irFile) - - // Check that deep copy produces an equivalent result - val irFileCopy = irFile.deepCopyWithSymbols() - val copiedTrees = irFileCopy.dumpTreesFromLineNumber(irTreeFileLabel.lineNumber, normalizeNames = true) - TestCase.assertEquals("IR dump mismatch after deep copy with symbols", actualTrees, copiedTrees) - verify(irFileCopy) - - if (!testFile.directives.contains("SKIP_KT_DUMP")) { - val kotlinLikeDump = irFile.dumpKotlinLike( - KotlinLikeDumpOptions( - printFileName = false, - printFilePath = false, - printFakeOverridesStrategy = FakeOverridesStrategy.NONE - ) - ) - val kotlinLikeDumpExpectedFile = irTreeFileLabel.expectedTextFile.withReplacedExtensionOrNull(".txt", ".kt.txt")!! - KotlinTestUtils.assertEqualsToFile(kotlinLikeDumpExpectedFile, kotlinLikeDump) - } - } - - try { - TestCase.assertEquals(irFileDump, expected.toString(), actual.toString()) - } catch (e: Throwable) { - println(irFileDump) - throw rethrow(e) - } - } - - private fun verify(irFile: IrFile) { - IrVerifier(JUnit4Assertions, isFir = false).verifyWithAssert(irFile) - } - - internal class Expectations(val regexps: List, val irTreeFileLabels: List) - - internal class RegexpInText(val numberOfOccurrences: Int, val needle: String) { - constructor(countStr: String, needle: String) : this(Integer.valueOf(countStr), needle) - } - - internal class IrTreeFileLabel(val expectedTextFile: File, val lineNumber: Int) - - protected open fun getExpectedTextFileName(testFile: TestFile, name: String = testFile.name): String { - return name.replace(".kts", ".txt").replace(".kt", ".txt") - } - - private fun parseExpectations(dir: File, testFile: TestFile): Expectations { - val regexps = - testFile.content.matchLinesWith(EXPECTED_OCCURRENCES_PATTERN) { - RegexpInText(it.groupValues[1], it.groupValues[2].trim()) - } - - var treeFiles = - testFile.content.matchLinesWith(IR_FILE_TXT_PATTERN) { - val fileName = it.groupValues[1].trim() - val file = File(dir, getExpectedTextFileName(testFile, fileName)) - IrTreeFileLabel(file, 0) - } - - if (treeFiles.isEmpty()) { - val file = File(dir, getExpectedTextFileName(testFile)) - treeFiles = listOf(IrTreeFileLabel(file, 0)) - } - - return Expectations(regexps, treeFiles) - } - - companion object { - private val EXPECTED_OCCURRENCES_PATTERN = Regex("""^\s*//\s*(\d+)\s*(.*)$""") - private val IR_FILE_TXT_PATTERN = Regex("""// IR_FILE: (.*)$""") - - private val DUMP_EXTERNAL_CLASS = Regex("""// DUMP_EXTERNAL_CLASS (.*)""") - - private val EXTERNAL_FILE_PATTERN = Regex("""// EXTERNAL_FILE""") - - private inline fun String.matchLinesWith(regex: Regex, ifMatched: (MatchResult) -> T): List = - lines().mapNotNull { regex.matchEntire(it)?.let(ifMatched) } - - internal fun parseDumpExternalClasses(text: String) = - text.matchLinesWith(DUMP_EXTERNAL_CLASS) { it.groupValues[1] } - - internal fun TestFile.isExternalFile() = - EXTERNAL_FILE_PATTERN.containsMatchIn(content) - } - -} diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 06dd1cb0035..7442697af0f 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -29,7 +29,6 @@ import org.jetbrains.kotlin.generators.util.TestGeneratorUtil.KT_OR_KTS_WITHOUT_ import org.jetbrains.kotlin.generators.util.TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME import org.jetbrains.kotlin.integration.AbstractAntTaskTest import org.jetbrains.kotlin.ir.AbstractIrCfgTestCase -import org.jetbrains.kotlin.ir.AbstractClassicJsIrTextTestCase import org.jetbrains.kotlin.ir.AbstractIrSourceRangesTestCase import org.jetbrains.kotlin.jvm.compiler.* import org.jetbrains.kotlin.jvm.compiler.ir.AbstractIrCompileJavaAgainstKotlinTest @@ -116,10 +115,6 @@ fun generateJUnit3CompilerTests(args: Array) { model("codegen/customScript", pattern = "^(.*)$") } - testClass { - model("ir/irText/js", pattern = "^(.+)\\.kt(s)?\$") - } - testClass { model("ir/irText/js", pattern = "^(.+)\\.kt\$", targetBackend = TargetBackend.JS_IR) } diff --git a/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java deleted file mode 100644 index d408f5d7b46..00000000000 --- a/compiler/tests-gen/org/jetbrains/kotlin/ir/ClassicJsIrTextTestCaseGenerated.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.ir; - -import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; -import org.jetbrains.kotlin.test.util.KtTestUtil; -import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; - -import java.io.File; -import java.util.regex.Pattern; - -/** This class is generated by {@link org.jetbrains.kotlin.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */ -@SuppressWarnings("all") -@TestMetadata("compiler/testData/ir/irText/js") -@TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) -public class ClassicJsIrTextTestCaseGenerated extends AbstractClassicJsIrTextTestCase { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInJs() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); - } - - @TestMetadata("compiler/testData/ir/irText/js/dynamic") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Dynamic extends AbstractClassicJsIrTextTestCase { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInDynamic() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); - } - - @TestMetadata("dynamicAndMembersOfAny.kt") - public void testDynamicAndMembersOfAny() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); - } - - @TestMetadata("dynamicArrayAccess.kt") - public void testDynamicArrayAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); - } - - @TestMetadata("dynamicArrayAssignment.kt") - public void testDynamicArrayAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); - } - - @TestMetadata("dynamicArrayAugmentedAssignment.kt") - public void testDynamicArrayAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); - } - - @TestMetadata("dynamicArrayIncrementDecrement.kt") - public void testDynamicArrayIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); - } - - @TestMetadata("dynamicBinaryEqualityOperator.kt") - public void testDynamicBinaryEqualityOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); - } - - @TestMetadata("dynamicBinaryLogicalOperator.kt") - public void testDynamicBinaryLogicalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); - } - - @TestMetadata("dynamicBinaryOperator.kt") - public void testDynamicBinaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); - } - - @TestMetadata("dynamicBinaryRelationalOperator.kt") - public void testDynamicBinaryRelationalOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); - } - - @TestMetadata("dynamicCall.kt") - public void testDynamicCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); - } - - @TestMetadata("dynamicElvisOperator.kt") - public void testDynamicElvisOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); - } - - @TestMetadata("dynamicExclExclOperator.kt") - public void testDynamicExclExclOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); - } - - @TestMetadata("dynamicInfixCall.kt") - public void testDynamicInfixCall() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); - } - - @TestMetadata("dynamicMemberAccess.kt") - public void testDynamicMemberAccess() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); - } - - @TestMetadata("dynamicMemberAssignment.kt") - public void testDynamicMemberAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); - } - - @TestMetadata("dynamicMemberAugmentedAssignment.kt") - public void testDynamicMemberAugmentedAssignment() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); - } - - @TestMetadata("dynamicMemberIncrementDecrement.kt") - public void testDynamicMemberIncrementDecrement() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); - } - - @TestMetadata("dynamicUnaryOperator.kt") - public void testDynamicUnaryOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); - } - - @TestMetadata("dynamicWithSmartCast.kt") - public void testDynamicWithSmartCast() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); - } - - @TestMetadata("implicitCastFromDynamic.kt") - public void testImplicitCastFromDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); - } - - @TestMetadata("implicitCastToDynamic.kt") - public void testImplicitCastToDynamic() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); - } - - @TestMetadata("invokeOperator.kt") - public void testInvokeOperator() throws Exception { - runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); - } - } - - @TestMetadata("compiler/testData/ir/irText/js/external") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class External extends AbstractClassicJsIrTextTestCase { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInExternal() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); - } - - @TestMetadata("kt38765.kt") - public void testKt38765() throws Exception { - runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); - } - } - - @TestMetadata("compiler/testData/ir/irText/js/native") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Native extends AbstractClassicJsIrTextTestCase { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); - } - - public void testAllFilesPresentInNative() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt(s)?$"), null, true); - } - - @TestMetadata("nativeNativeKotlin.kt") - public void testNativeNativeKotlin() throws Exception { - runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); - } - } -} diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java index d9294e60fd7..1eb754e22e3 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java @@ -1915,11 +1915,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/firProblems/FirBuilder.kt"); } - @TestMetadata("FlushFromAnonymous.kt") - public void testFlushFromAnonymous() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt"); - } - @TestMetadata("ImplicitReceiverStack.kt") public void testImplicitReceiverStack() throws Exception { runTest("compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt"); @@ -1975,11 +1970,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt"); } - @TestMetadata("reflectFindAnnotationOnDefaultMethodParameter.kt") - public void testReflectFindAnnotationOnDefaultMethodParameter() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt"); - } - @TestMetadata("reflectGetOnNullableTypeAlias.kt") public void testReflectGetOnNullableTypeAlias() throws Exception { runTest("compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.kt"); @@ -2370,11 +2360,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @TestMetadata("constFromBuiltins.kt") - public void testConstFromBuiltins() throws Exception { - runTest("compiler/testData/ir/irText/stubs/constFromBuiltins.kt"); - } - @TestMetadata("genericClassInDifferentModule.kt") public void testGenericClassInDifferentModule() throws Exception { runTest("compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index ae49861e3b8..79784d4391c 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -179,10 +179,18 @@ fun main(args: Array) { model("diagnostics/testsWithJsStdLib", pattern = "^([^_](.+))\\.kt$", excludedPattern = excludedFirTestdataPattern) } + testClass { + model("ir/irText") + } + testClass { model("ir/irText") } + testClass { + model("ir/irText") + } + testClass { model("codegen/box", excludeDirs = jvmOnlyBoxTests) } diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirJsIrTextTestBase.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirJsIrTextTestBase.kt index 689e3e3472d..01a5273b01d 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirJsIrTextTestBase.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirJsIrTextTestBase.kt @@ -5,37 +5,38 @@ package org.jetbrains.kotlin.js.test.fir -import org.jetbrains.kotlin.platform.js.JsPlatforms +import org.jetbrains.kotlin.js.test.ir.AbstractJsIrTextTestBase +import org.jetbrains.kotlin.test.Constructor import org.jetbrains.kotlin.test.FirParser -import org.jetbrains.kotlin.test.TargetBackend +import org.jetbrains.kotlin.test.backend.ir.IrBackendInput import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder -import org.jetbrains.kotlin.test.model.BinaryKind -import org.jetbrains.kotlin.test.model.DependencyKind -import org.jetbrains.kotlin.test.runners.ir.AbstractFirIrTextTestBase -import org.jetbrains.kotlin.test.services.JsLibraryProvider -import org.jetbrains.kotlin.test.services.configuration.CommonEnvironmentConfigurator -import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator +import org.jetbrains.kotlin.test.frontend.fir.Fir2IrJsResultsConverter +import org.jetbrains.kotlin.test.frontend.fir.FirFrontendFacade +import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.model.Frontend2BackendConverter +import org.jetbrains.kotlin.test.model.FrontendFacade +import org.jetbrains.kotlin.test.model.FrontendKind +import org.jetbrains.kotlin.test.model.FrontendKinds +import org.jetbrains.kotlin.test.runners.codegen.FirPsiCodegenTest -open class AbstractFirJsIrTextTestBase(parser: FirParser) : AbstractFirIrTextTestBase(parser, TargetBackend.JS_IR) { - override fun TestConfigurationBuilder.applyConfigurators() { - useConfigurators( - ::CommonEnvironmentConfigurator, - ::JsEnvironmentConfigurator, - ) +abstract class AbstractFirJsIrTextTestBase(private val parser: FirParser) : AbstractJsIrTextTestBase() { - useAdditionalService(::JsLibraryProvider) - } + override val frontend: FrontendKind<*> + get() = FrontendKinds.FIR + + override val frontendFacade: Constructor> + get() = ::FirFrontendFacade + + override val converter: Constructor> + get() = ::Fir2IrJsResultsConverter override fun configure(builder: TestConfigurationBuilder) { super.configure(builder) - with(builder) { - globalDefaults { - targetPlatform = JsPlatforms.defaultJsPlatform - artifactKind = BinaryKind.NoArtifact - dependencyKind = DependencyKind.Source - } - } + builder.commonConfigurationForK2(parser) } } open class AbstractFirLightTreeJsIrTextTest : AbstractFirJsIrTextTestBase(FirParser.LightTree) + +@FirPsiCodegenTest +open class AbstractFirPsiJsIrTextTest : AbstractFirJsIrTextTestBase(FirParser.Psi) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTextTestBase.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTextTestBase.kt new file mode 100644 index 00000000000..c7a2fa0f545 --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsIrTextTestBase.kt @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.js.test.ir + +import org.jetbrains.kotlin.platform.js.JsPlatforms +import org.jetbrains.kotlin.test.Constructor +import org.jetbrains.kotlin.test.TargetBackend +import org.jetbrains.kotlin.test.backend.ir.IrBackendInput +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontend2IrConverter +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendFacade +import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.runners.ir.AbstractIrTextTestBase +import org.jetbrains.kotlin.test.services.JsLibraryProvider +import org.jetbrains.kotlin.test.services.configuration.CommonEnvironmentConfigurator +import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator + +abstract class AbstractJsIrTextTestBase> : + AbstractIrTextTestBase(JsPlatforms.defaultJsPlatform, TargetBackend.JS_IR) { + + final override fun TestConfigurationBuilder.applyConfigurators() { + useConfigurators( + ::CommonEnvironmentConfigurator, + ::JsEnvironmentConfigurator, + ) + + useAdditionalService(::JsLibraryProvider) + } +} + +open class AbstractClassicJsIrTextTest : AbstractJsIrTextTestBase() { + + override val frontend: FrontendKind<*> + get() = FrontendKinds.ClassicFrontend + + override val frontendFacade: Constructor> + get() = ::ClassicFrontendFacade + + override val converter: Constructor> + get() = ::ClassicFrontend2IrConverter +} diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java index 14ca40910ea..96ef984adef 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLightTreeJsIrTextTestGenerated.java @@ -2069,12 +2069,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt"); } - @Test - @TestMetadata("functionSupertype.kt") - public void testFunctionSupertype() throws Exception { - runTest("compiler/testData/ir/irText/expressions/funInterface/functionSupertype.kt"); - } - @Test @TestMetadata("partialSam.kt") public void testPartialSam() throws Exception { @@ -2192,12 +2186,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/firProblems/FirBuilder.kt"); } - @Test - @TestMetadata("FlushFromAnonymous.kt") - public void testFlushFromAnonymous() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt"); - } - @Test @TestMetadata("ImplicitReceiverStack.kt") public void testImplicitReceiverStack() throws Exception { @@ -2264,12 +2252,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt"); } - @Test - @TestMetadata("reflectFindAnnotationOnDefaultMethodParameter.kt") - public void testReflectFindAnnotationOnDefaultMethodParameter() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt"); - } - @Test @TestMetadata("reflectGetOnNullableTypeAlias.kt") public void testReflectGetOnNullableTypeAlias() throws Exception { @@ -2682,12 +2664,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Test - @TestMetadata("constFromBuiltins.kt") - public void testConstFromBuiltins() throws Exception { - runTest("compiler/testData/ir/irText/stubs/constFromBuiltins.kt"); - } - @Test @TestMetadata("genericClassInDifferentModule.kt") public void testGenericClassInDifferentModule() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java new file mode 100644 index 00000000000..d5fc944f76d --- /dev/null +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirPsiJsIrTextTestGenerated.java @@ -0,0 +1,2871 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.js.test.fir; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/ir/irText") +@TestDataPath("$PROJECT_ROOT") +public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { + @Test + public void testAllFilesPresentInIrText() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + @TestMetadata("47424.kt") + public void test47424() throws Exception { + runTest("compiler/testData/ir/irText/classes/47424.kt"); + } + + @Test + @TestMetadata("abstractMembers.kt") + public void testAbstractMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/abstractMembers.kt"); + } + + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationClasses.kt") + public void testAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/annotationClasses.kt"); + } + + @Test + @TestMetadata("argumentReorderingInDelegatingConstructorCall.kt") + public void testArgumentReorderingInDelegatingConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classMembers.kt") + public void testClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/classMembers.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/classes.kt"); + } + + @Test + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/ir/irText/classes/cloneable.kt"); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/ir/irText/classes/companionObject.kt"); + } + + @Test + @TestMetadata("delegatedGenericImplementation.kt") + public void testDelegatedGenericImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt"); + } + + @Test + @TestMetadata("delegatedImplementation.kt") + public void testDelegatedImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementation.kt"); + } + + @Test + @TestMetadata("delegatedImplementationWithExplicitOverride.kt") + public void testDelegatedImplementationWithExplicitOverride() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt"); + } + + @Test + @TestMetadata("delegatingConstructorCallToTypeAliasConstructor.kt") + public void testDelegatingConstructorCallToTypeAliasConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.kt"); + } + + @Test + @TestMetadata("delegatingConstructorCallsInSecondaryConstructors.kt") + public void testDelegatingConstructorCallsInSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/ir/irText/classes/enum.kt"); + } + + @Test + @TestMetadata("enumClassModality.kt") + public void testEnumClassModality() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumClassModality.kt"); + } + + @Test + @TestMetadata("enumWithMultipleCtors.kt") + public void testEnumWithMultipleCtors() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt"); + } + + @Test + @TestMetadata("enumWithSecondaryCtor.kt") + public void testEnumWithSecondaryCtor() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt"); + } + + @Test + @TestMetadata("initBlock.kt") + public void testInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/classes/initBlock.kt"); + } + + @Test + @TestMetadata("initVal.kt") + public void testInitVal() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVal.kt"); + } + + @Test + @TestMetadata("initValInLambda.kt") + public void testInitValInLambda() throws Exception { + runTest("compiler/testData/ir/irText/classes/initValInLambda.kt"); + } + + @Test + @TestMetadata("initVar.kt") + public void testInitVar() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVar.kt"); + } + + @Test + @TestMetadata("inlineClass.kt") + public void testInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClass.kt"); + } + + @Test + @TestMetadata("inlineClassSyntheticMethods.kt") + public void testInlineClassSyntheticMethods() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClass.kt"); + } + + @Test + @TestMetadata("innerClassWithDelegatingConstructor.kt") + public void testInnerClassWithDelegatingConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.kt"); + } + + @Test + @TestMetadata("kt19306.kt") + public void testKt19306() throws Exception { + runTest("compiler/testData/ir/irText/classes/kt19306.kt"); + } + + @Test + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/localClasses.kt"); + } + + @Test + @TestMetadata("objectLiteralExpressions.kt") + public void testObjectLiteralExpressions() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectLiteralExpressions.kt"); + } + + @Test + @TestMetadata("objectWithInitializers.kt") + public void testObjectWithInitializers() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectWithInitializers.kt"); + } + + @Test + @TestMetadata("outerClassAccess.kt") + public void testOuterClassAccess() throws Exception { + runTest("compiler/testData/ir/irText/classes/outerClassAccess.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructor.kt"); + } + + @Test + @TestMetadata("primaryConstructorWithSuperConstructorCall.kt") + public void testPrimaryConstructorWithSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("qualifiedSuperCalls.kt") + public void testQualifiedSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/qualifiedSuperCalls.kt"); + } + + @Test + @TestMetadata("sealedClasses.kt") + public void testSealedClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/sealedClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithInitializersFromClassBody.kt") + public void testSecondaryConstructorWithInitializersFromClassBody() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("smartCastInValInitialization.kt") + public void testSmartCastInValInitialization() throws Exception { + runTest("compiler/testData/ir/irText/classes/smartCastInValInitialization.kt"); + } + + @Test + @TestMetadata("superCalls.kt") + public void testSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCalls.kt"); + } + + @Test + @TestMetadata("superCallsComposed.kt") + public void testSuperCallsComposed() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCallsComposed.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/classes/dataClasses") + @TestDataPath("$PROJECT_ROOT") + public class DataClasses { + @Test + public void testAllFilesPresentInDataClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dataClassWithArrayMembers.kt") + public void testDataClassWithArrayMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.kt"); + } + + @Test + @TestMetadata("dataClasses.kt") + public void testDataClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt"); + } + + @Test + @TestMetadata("dataClassesGeneric.kt") + public void testDataClassesGeneric() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.kt"); + } + + @Test + @TestMetadata("delegationInSealed.kt") + public void testDelegationInSealed() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt"); + } + + @Test + @TestMetadata("kt31649.kt") + public void testKt31649() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt31649.kt"); + } + + @Test + @TestMetadata("kt49936.kt") + public void testKt49936() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt49936.kt"); + } + + @Test + @TestMetadata("lambdaInDataClassDefaultParameter.kt") + public void testLambdaInDataClassDefaultParameter() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.kt"); + } + + @Test + @TestMetadata("openDataClass.kt") + public void testOpenDataClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations") + @TestDataPath("$PROJECT_ROOT") + public class Declarations { + @Test + public void testAllFilesPresentInDeclarations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catchParameterInTopLevelProperty.kt") + public void testCatchParameterInTopLevelProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt"); + } + + @Test + @TestMetadata("classLevelProperties.kt") + public void testClassLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/classLevelProperties.kt"); + } + + @Test + @TestMetadata("constValInitializers.kt") + public void testConstValInitializers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/constValInitializers.kt"); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/defaultArguments.kt"); + } + + @Test + @TestMetadata("delegatedProperties.kt") + public void testDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/delegatedProperties.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("extensionProperties.kt") + public void testExtensionProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/extensionProperties.kt"); + } + + @Test + @TestMetadata("fakeOverrides.kt") + public void testFakeOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fakeOverrides.kt"); + } + + @Test + @TestMetadata("fileWithTypeAliasesOnly.kt") + public void testFileWithTypeAliasesOnly() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fileWithTypeAliasesOnly.kt"); + } + + @Test + @TestMetadata("genericDelegatedProperty.kt") + public void testGenericDelegatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/genericDelegatedProperty.kt"); + } + + @Test + @TestMetadata("inlineCollectionOfInlineClass.kt") + public void testInlineCollectionOfInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt"); + } + + @Test + @TestMetadata("interfaceProperties.kt") + public void testInterfaceProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/interfaceProperties.kt"); + } + + @Test + @TestMetadata("kt27005.kt") + public void testKt27005() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt27005.kt"); + } + + @Test + @TestMetadata("kt35550.kt") + public void testKt35550() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt35550.kt"); + } + + @Test + @TestMetadata("kt45308.kt") + public void testKt45308() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt45308.kt"); + } + + @Test + @TestMetadata("kt47527.kt") + public void testKt47527() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt47527.kt"); + } + + @Test + @TestMetadata("kt52677.kt") + public void testKt52677() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt52677.kt"); + } + + @Test + @TestMetadata("localClassWithOverrides.kt") + public void testLocalClassWithOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localClassWithOverrides.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties.kt") + public void testLocalDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localDelegatedProperties.kt"); + } + + @Test + @TestMetadata("localVarInDoWhile.kt") + public void testLocalVarInDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localVarInDoWhile.kt"); + } + + @Test + @TestMetadata("packageLevelProperties.kt") + public void testPackageLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/packageLevelProperties.kt"); + } + + @Test + @TestMetadata("primaryCtorDefaultArguments.kt") + public void testPrimaryCtorDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.kt"); + } + + @Test + @TestMetadata("primaryCtorProperties.kt") + public void testPrimaryCtorProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorProperties.kt"); + } + + @Test + @TestMetadata("typeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/declarations/typeAlias.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationOnClassWithInitializer.kt") + public void testAnnotationOnClassWithInitializer() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.kt"); + } + + @Test + @TestMetadata("annotationsInAnnotationArguments.kt") + public void testAnnotationsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("annotationsWithDefaultParameterValues.kt") + public void testAnnotationsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("annotationsWithVarargParameters.kt") + public void testAnnotationsWithVarargParameters() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.kt"); + } + + @Test + @TestMetadata("arrayInAnnotationArguments.kt") + public void testArrayInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("classLiteralInAnnotation.kt") + public void testClassLiteralInAnnotation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt"); + } + + @Test + @TestMetadata("classesWithAnnotations.kt") + public void testClassesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt"); + } + + @Test + @TestMetadata("constExpressionsInAnnotationArguments.kt") + public void testConstExpressionsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("constructorsWithAnnotations.kt") + public void testConstructorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegateFieldWithAnnotations.kt") + public void testDelegateFieldWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegatedPropertyAccessorsWithAnnotations.kt") + public void testDelegatedPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumEntriesWithAnnotations.kt") + public void testEnumEntriesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumsInAnnotationArguments.kt") + public void testEnumsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("fieldsWithAnnotations.kt") + public void testFieldsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.kt"); + } + + @Test + @TestMetadata("fileAnnotations.kt") + public void testFileAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt"); + } + + @Test + @TestMetadata("functionsWithAnnotations.kt") + public void testFunctionsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.kt"); + } + + @Test + @TestMetadata("genericAnnotationClasses.kt") + public void testGenericAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("localDelegatedPropertiesWithAnnotations.kt") + public void testLocalDelegatedPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("multipleAnnotationsInSquareBrackets.kt") + public void testMultipleAnnotationsInSquareBrackets() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt"); + } + + @Test + @TestMetadata("primaryConstructorParameterWithAnnotations.kt") + public void testPrimaryConstructorParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertiesWithAnnotations.kt") + public void testPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsFromClassHeaderWithAnnotations.kt") + public void testPropertyAccessorsFromClassHeaderWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsWithAnnotations.kt") + public void testPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertySetterParameterWithAnnotations.kt") + public void testPropertySetterParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("receiverParameterWithAnnotations.kt") + public void testReceiverParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("spreadOperatorInAnnotationArguments.kt") + public void testSpreadOperatorInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("typeAliasesWithAnnotations.kt") + public void testTypeAliasesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt"); + } + + @Test + @TestMetadata("typeParametersWithAnnotations.kt") + public void testTypeParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("valueParametersWithAnnotations.kt") + public void testValueParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("varargsInAnnotationArguments.kt") + public void testVarargsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("variablesWithAnnotations.kt") + public void testVariablesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("contextReceiverMethod.kt") + public void testContextReceiverMethod() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); + } + + @Test + @TestMetadata("contextualPrimaryConstructorWithParams.kt") + public void testContextualPrimaryConstructorWithParams() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt"); + } + + @Test + @TestMetadata("genericOuterClass.kt") + public void testGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); + } + + @Test + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt"); + } + + @Test + @TestMetadata("overloadPriority.kt") + public void testOverloadPriority() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt"); + } + + @Test + @TestMetadata("overloading.kt") + public void testOverloading() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); + } + + @Test + @TestMetadata("plusMatrix.kt") + public void testPlusMatrix() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/property.kt"); + } + + @Test + @TestMetadata("thisWithCustomLabel.kt") + public void testThisWithCustomLabel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt"); + } + + @Test + @TestMetadata("typeParameterAsContextReceiver.kt") + public void testTypeParameterAsContextReceiver() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/jvmRecord") + @TestDataPath("$PROJECT_ROOT") + public class JvmRecord { + @Test + public void testAllFilesPresentInJvmRecord() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/jvmRecord"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("expectClassInherited.kt") + public void testExpectClassInherited() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt"); + } + + @Test + @TestMetadata("expectedEnumClass.kt") + public void testExpectedEnumClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt"); + } + + @Test + @TestMetadata("expectedEnumClass2.kt") + public void testExpectedEnumClass2() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt"); + } + + @Test + @TestMetadata("expectedSealedClass.kt") + public void testExpectedSealedClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/class.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/constructor.kt"); + } + + @Test + @TestMetadata("dataClassMembers.kt") + public void testDataClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt"); + } + + @Test + @TestMetadata("defaultPropertyAccessors.kt") + public void testDefaultPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.kt"); + } + + @Test + @TestMetadata("delegatedMembers.kt") + public void testDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt"); + } + + @Test + @TestMetadata("fun.kt") + public void testFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/fun.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/genericInnerClass.kt"); + } + + @Test + @TestMetadata("lambdas.kt") + public void testLambdas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/lambdas.kt"); + } + + @Test + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/localFun.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/propertyAccessors.kt"); + } + + @Test + @TestMetadata("typeParameterBeforeBound.kt") + public void testTypeParameterBeforeBound() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.kt"); + } + + @Test + @TestMetadata("typeParameterBoundedBySubclass.kt") + public void testTypeParameterBoundedBySubclass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.kt"); + } + + @Test + @TestMetadata("useNextParamInLambda.kt") + public void testUseNextParamInLambda() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/provideDelegate") + @TestDataPath("$PROJECT_ROOT") + public class ProvideDelegate { + @Test + public void testAllFilesPresentInProvideDelegate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("differentReceivers.kt") + public void testDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/local.kt"); + } + + @Test + @TestMetadata("localDifferentReceivers.kt") + public void testLocalDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.kt"); + } + + @Test + @TestMetadata("member.kt") + public void testMember() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/member.kt"); + } + + @Test + @TestMetadata("memberExtension.kt") + public void testMemberExtension() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/errors") + @TestDataPath("$PROJECT_ROOT") + public class Errors { + @Test + public void testAllFilesPresentInErrors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/errors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("suppressedNonPublicCall.kt") + public void testSuppressedNonPublicCall() throws Exception { + runTest("compiler/testData/ir/irText/errors/suppressedNonPublicCall.kt"); + } + + @Test + @TestMetadata("unresolvedReference.kt") + public void testUnresolvedReference() throws Exception { + runTest("compiler/testData/ir/irText/errors/unresolvedReference.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions") + @TestDataPath("$PROJECT_ROOT") + public class Expressions { + @Test + public void testAllFilesPresentInExpressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("argumentMappedWithError.kt") + public void testArgumentMappedWithError() throws Exception { + runTest("compiler/testData/ir/irText/expressions/argumentMappedWithError.kt"); + } + + @Test + @TestMetadata("arrayAccess.kt") + public void testArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAccess.kt"); + } + + @Test + @TestMetadata("arrayAssignment.kt") + public void testArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAssignment.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment1.kt") + public void testArrayAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment2.kt") + public void testArrayAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt"); + } + + @Test + @TestMetadata("assignments.kt") + public void testAssignments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/assignments.kt"); + } + + @Test + @TestMetadata("augmentedAssignment1.kt") + public void testAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment1.kt"); + } + + @Test + @TestMetadata("augmentedAssignment2.kt") + public void testAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment2.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentWithExpression.kt") + public void testAugmentedAssignmentWithExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.kt"); + } + + @Test + @TestMetadata("badBreakContinue.kt") + public void testBadBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badBreakContinue.kt"); + } + + @Test + @TestMetadata("badInlinedBreakContinue.kt") + public void testBadInlinedBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt"); + } + + @Test + @TestMetadata("bangbang.kt") + public void testBangbang() throws Exception { + runTest("compiler/testData/ir/irText/expressions/bangbang.kt"); + } + + @Test + @TestMetadata("booleanConstsInAndAndOrOr.kt") + public void testBooleanConstsInAndAndOrOr() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.kt"); + } + + @Test + @TestMetadata("booleanOperators.kt") + public void testBooleanOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanOperators.kt"); + } + + @Test + @TestMetadata("boundCallableReferences.kt") + public void testBoundCallableReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boundCallableReferences.kt"); + } + + @Test + @TestMetadata("boxOk.kt") + public void testBoxOk() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boxOk.kt"); + } + + @Test + @TestMetadata("breakContinue.kt") + public void testBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinue.kt"); + } + + @Test + @TestMetadata("breakContinueInLoopHeader.kt") + public void testBreakContinueInLoopHeader() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt"); + } + + @Test + @TestMetadata("breakContinueInWhen.kt") + public void testBreakContinueInWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInWhen.kt"); + } + + @Test + @TestMetadata("builtinOperators.kt") + public void testBuiltinOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/builtinOperators.kt"); + } + + @Test + @TestMetadata("callWithReorderedArguments.kt") + public void testCallWithReorderedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt"); + } + + @Test + @TestMetadata("calls.kt") + public void testCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/calls.kt"); + } + + @Test + @TestMetadata("castToTypeParameter.kt") + public void testCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/castToTypeParameter.kt"); + } + + @Test + @TestMetadata("catchParameterAccess.kt") + public void testCatchParameterAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/catchParameterAccess.kt"); + } + + @Test + @TestMetadata("chainOfSafeCalls.kt") + public void testChainOfSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt"); + } + + @Test + @TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt") + public void testChainedFunSuspendConversionForSimpleExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.kt"); + } + + @Test + @TestMetadata("complexAugmentedAssignment.kt") + public void testComplexAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("contructorCall.kt") + public void testContructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/contructorCall.kt"); + } + + @Test + @TestMetadata("conventionComparisons.kt") + public void testConventionComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/conventionComparisons.kt"); + } + + @Test + @TestMetadata("destructuring1.kt") + public void testDestructuring1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuring1.kt"); + } + + @Test + @TestMetadata("destructuringWithUnderscore.kt") + public void testDestructuringWithUnderscore() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuringWithUnderscore.kt"); + } + + @Test + @TestMetadata("dotQualified.kt") + public void testDotQualified() throws Exception { + runTest("compiler/testData/ir/irText/expressions/dotQualified.kt"); + } + + @Test + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("compiler/testData/ir/irText/expressions/elvis.kt"); + } + + @Test + @TestMetadata("enumEntryAsReceiver.kt") + public void testEnumEntryAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromEnumEntryClass.kt") + public void testEnumEntryReferenceFromEnumEntryClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt"); + } + + @Test + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/ir/irText/expressions/equality.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenElseBranch.kt") + public void testExhaustiveWhenElseBranch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt"); + } + + @Test + @TestMetadata("extFunInvokeAsFun.kt") + public void testExtFunInvokeAsFun() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunInvokeAsFun.kt"); + } + + @Test + @TestMetadata("extFunSafeInvoke.kt") + public void testExtFunSafeInvoke() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt"); + } + + @Test + @TestMetadata("extensionPropertyGetterCall.kt") + public void testExtensionPropertyGetterCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/ir/irText/expressions/field.kt"); + } + + @Test + @TestMetadata("for.kt") + public void testFor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/for.kt"); + } + + @Test + @TestMetadata("forWithBreakContinue.kt") + public void testForWithBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithBreakContinue.kt"); + } + + @Test + @TestMetadata("forWithImplicitReceivers.kt") + public void testForWithImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt"); + } + + @Test + @TestMetadata("funImportedFromObject.kt") + public void testFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funImportedFromObject.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorReference.kt") + public void testFunInterfaceConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.kt"); + } + + @Test + @TestMetadata("genericConstructorCallWithTypeArguments.kt") + public void testGenericConstructorCallWithTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt"); + } + + @Test + @TestMetadata("genericPropertyCall.kt") + public void testGenericPropertyCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyCall.kt"); + } + + @Test + @TestMetadata("genericPropertyRef.kt") + public void testGenericPropertyRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt"); + } + + @Test + @TestMetadata("identity.kt") + public void testIdentity() throws Exception { + runTest("compiler/testData/ir/irText/expressions/identity.kt"); + } + + @Test + @TestMetadata("ifElseIf.kt") + public void testIfElseIf() throws Exception { + runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt"); + } + + @Test + @TestMetadata("implicitCastInReturnFromConstructor.kt") + public void testImplicitCastInReturnFromConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.kt"); + } + + @Test + @TestMetadata("implicitCastToNonNull.kt") + public void testImplicitCastToNonNull() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToNonNull.kt"); + } + + @Test + @TestMetadata("implicitCastToTypeParameter.kt") + public void testImplicitCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.kt"); + } + + @Test + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/in.kt"); + } + + @Test + @TestMetadata("incrementDecrement.kt") + public void testIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/incrementDecrement.kt"); + } + + @Test + @TestMetadata("interfaceThisRef.kt") + public void testInterfaceThisRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt"); + } + + @Test + @TestMetadata("kt16905.kt") + public void testKt16905() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt16905.kt"); + } + + @Test + @TestMetadata("kt23030.kt") + public void testKt23030() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt23030.kt"); + } + + @Test + @TestMetadata("kt24804.kt") + public void testKt24804() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt24804.kt"); + } + + @Test + @TestMetadata("kt27933.kt") + public void testKt27933() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt27933.kt"); + } + + @Test + @TestMetadata("kt28006.kt") + public void testKt28006() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28006.kt"); + } + + @Test + @TestMetadata("kt28456.kt") + public void testKt28456() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456.kt"); + } + + @Test + @TestMetadata("kt28456a.kt") + public void testKt28456a() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456a.kt"); + } + + @Test + @TestMetadata("kt28456b.kt") + public void testKt28456b() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456b.kt"); + } + + @Test + @TestMetadata("kt30020.kt") + public void testKt30020() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30020.kt"); + } + + @Test + @TestMetadata("kt30796.kt") + public void testKt30796() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30796.kt"); + } + + @Test + @TestMetadata("kt35730.kt") + public void testKt35730() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt35730.kt"); + } + + @Test + @TestMetadata("kt36956.kt") + public void testKt36956() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36956.kt"); + } + + @Test + @TestMetadata("kt36963.kt") + public void testKt36963() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36963.kt"); + } + + @Test + @TestMetadata("kt37570.kt") + public void testKt37570() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37570.kt"); + } + + @Test + @TestMetadata("kt37779.kt") + public void testKt37779() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37779.kt"); + } + + @Test + @TestMetadata("kt45022.kt") + public void testKt45022() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt45022.kt"); + } + + @Test + @TestMetadata("kt47245.kt") + public void testKt47245() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47245.kt"); + } + + @Test + @TestMetadata("kt47450.kt") + public void testKt47450() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47450.kt"); + } + + @Test + @TestMetadata("kt48708.kt") + public void testKt48708() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48708.kt"); + } + + @Test + @TestMetadata("kt48806.kt") + public void testKt48806() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48806.kt"); + } + + @Test + @TestMetadata("kt49203.kt") + public void testKt49203() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt49203.kt"); + } + + @Test + @TestMetadata("kt50028.kt") + public void testKt50028() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt50028.kt"); + } + + @Test + @TestMetadata("kt51036.kt") + public void testKt51036() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt51036.kt"); + } + + @Test + @TestMetadata("lambdaInCAO.kt") + public void testLambdaInCAO() throws Exception { + runTest("compiler/testData/ir/irText/expressions/lambdaInCAO.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/literals.kt"); + } + + @Test + @TestMetadata("memberTypeArguments.kt") + public void testMemberTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/memberTypeArguments.kt"); + } + + @Test + @TestMetadata("membersImportedFromObject.kt") + public void testMembersImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt"); + } + + @Test + @TestMetadata("multipleSmartCasts.kt") + public void testMultipleSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleSmartCasts.kt"); + } + + @Test + @TestMetadata("multipleThisReferences.kt") + public void testMultipleThisReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleThisReferences.kt"); + } + + @Test + @TestMetadata("objectAsCallable.kt") + public void testObjectAsCallable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectAsCallable.kt"); + } + + @Test + @TestMetadata("objectByNameInsideObject.kt") + public void testObjectByNameInsideObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectByNameInsideObject.kt"); + } + + @Test + @TestMetadata("objectReference.kt") + public void testObjectReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReference.kt"); + } + + @Test + @TestMetadata("objectReferenceInClosureInSuperConstructorCall.kt") + public void testObjectReferenceInClosureInSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("objectReferenceInFieldInitializer.kt") + public void testObjectReferenceInFieldInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.kt"); + } + + @Test + @TestMetadata("outerClassInstanceReference.kt") + public void testOuterClassInstanceReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/outerClassInstanceReference.kt"); + } + + @Test + @TestMetadata("primitiveComparisons.kt") + public void testPrimitiveComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitiveComparisons.kt"); + } + + @Test + @TestMetadata("primitivesImplicitConversions.kt") + public void testPrimitivesImplicitConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt"); + } + + @Test + @TestMetadata("references.kt") + public void testReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/references.kt"); + } + + @Test + @TestMetadata("reflectionLiterals.kt") + public void testReflectionLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/reflectionLiterals.kt"); + } + + @Test + @TestMetadata("safeAssignment.kt") + public void testSafeAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeAssignment.kt"); + } + + @Test + @TestMetadata("safeCallWithIncrementDecrement.kt") + public void testSafeCallWithIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt"); + } + + @Test + @TestMetadata("safeCalls.kt") + public void testSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCalls.kt"); + } + + @Test + @TestMetadata("signedToUnsignedConversions.kt") + public void testSignedToUnsignedConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt"); + } + + @Test + @TestMetadata("simpleOperators.kt") + public void testSimpleOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleOperators.kt"); + } + + @Test + @TestMetadata("simpleUnaryOperators.kt") + public void testSimpleUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt"); + } + + @Test + @TestMetadata("smartCasts.kt") + public void testSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCasts.kt"); + } + + @Test + @TestMetadata("smartCastsWithDestructuring.kt") + public void testSmartCastsWithDestructuring() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.kt"); + } + + @Test + @TestMetadata("specializedTypeAliasConstructorCall.kt") + public void testSpecializedTypeAliasConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt"); + } + + @Test + @TestMetadata("stringComparisons.kt") + public void testStringComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringComparisons.kt"); + } + + @Test + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringPlus.kt"); + } + + @Test + @TestMetadata("stringTemplates.kt") + public void testStringTemplates() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringTemplates.kt"); + } + + @Test + @TestMetadata("suspendConversionForExtensionFunction.kt") + public void testSuspendConversionForExtensionFunction() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt"); + } + + @Test + @TestMetadata("suspendConversionInVararg.kt") + public void testSuspendConversionInVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt"); + } + + @Test + @TestMetadata("suspendConversionOnArbitraryExpression.kt") + public void testSuspendConversionOnArbitraryExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt"); + } + + @Test + @TestMetadata("suspendConversionWithFunInterfaces.kt") + public void testSuspendConversionWithFunInterfaces() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.kt"); + } + + @Test + @TestMetadata("temporaryInEnumEntryInitializer.kt") + public void testTemporaryInEnumEntryInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt"); + } + + @Test + @TestMetadata("temporaryInInitBlock.kt") + public void testTemporaryInInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt"); + } + + @Test + @TestMetadata("thisOfGenericOuterClass.kt") + public void testThisOfGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt"); + } + + @Test + @TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt") + public void testThisRefToObjectInNestedClassConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.kt"); + } + + @Test + @TestMetadata("thisReferenceBeforeClassDeclared.kt") + public void testThisReferenceBeforeClassDeclared() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt"); + } + + @Test + @TestMetadata("throw.kt") + public void testThrow() throws Exception { + runTest("compiler/testData/ir/irText/expressions/throw.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatch.kt"); + } + + @Test + @TestMetadata("tryCatchWithImplicitCast.kt") + public void testTryCatchWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorReference.kt") + public void testTypeAliasConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeAliasConstructorReference.kt"); + } + + @Test + @TestMetadata("typeOperators.kt") + public void testTypeOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeOperators.kt"); + } + + @Test + @TestMetadata("typeParameterClassLiteral.kt") + public void testTypeParameterClassLiteral() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeParameterClassLiteral.kt"); + } + + @Test + @TestMetadata("unsignedIntegerLiterals.kt") + public void testUnsignedIntegerLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt"); + } + + @Test + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/useImportedMember.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("compiler/testData/ir/irText/expressions/values.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/vararg.kt"); + } + + @Test + @TestMetadata("varargWithImplicitCast.kt") + public void testVarargWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCall.kt") + public void testVariableAsFunctionCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCallWithGenerics.kt") + public void testVariableAsFunctionCallWithGenerics() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/when.kt"); + } + + @Test + @TestMetadata("whenCoercedToUnit.kt") + public void testWhenCoercedToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt"); + } + + @Test + @TestMetadata("whenElse.kt") + public void testWhenElse() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenElse.kt"); + } + + @Test + @TestMetadata("whenReturn.kt") + public void testWhenReturn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturn.kt"); + } + + @Test + @TestMetadata("whenReturnUnit.kt") + public void testWhenReturnUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturnUnit.kt"); + } + + @Test + @TestMetadata("whenSmartCastToEnum.kt") + public void testWhenSmartCastToEnum() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt"); + } + + @Test + @TestMetadata("whenUnusedExpression.kt") + public void testWhenUnusedExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenUnusedExpression.kt"); + } + + @Test + @TestMetadata("whenWithSubjectVariable.kt") + public void testWhenWithSubjectVariable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("whileDoWhile.kt") + public void testWhileDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whileDoWhile.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/callableReferences") + @TestDataPath("$PROJECT_ROOT") + public class CallableReferences { + @Test + @TestMetadata("adaptedExtensionFunctions.kt") + public void testAdaptedExtensionFunctions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.kt"); + } + + @Test + @TestMetadata("adaptedWithCoercionToUnit.kt") + public void testAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedWithCoercionToUnit.kt"); + } + + @Test + public void testAllFilesPresentInCallableReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("boundInlineAdaptedReference.kt") + public void testBoundInlineAdaptedReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt"); + } + + @Test + @TestMetadata("boundInnerGenericConstructor.kt") + public void testBoundInnerGenericConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.kt"); + } + + @Test + @TestMetadata("caoWithAdaptationForSam.kt") + public void testCaoWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt"); + } + + @Test + @TestMetadata("constructorWithAdaptedArguments.kt") + public void testConstructorWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("funWithDefaultParametersAsKCallableStar.kt") + public void testFunWithDefaultParametersAsKCallableStar() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.kt"); + } + + @Test + @TestMetadata("genericLocalClassConstructorReference.kt") + public void testGenericLocalClassConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.kt"); + } + + @Test + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericMember.kt"); + } + + @Test + @TestMetadata("importedFromObject.kt") + public void testImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.kt"); + } + + @Test + @TestMetadata("kt37131.kt") + public void testKt37131() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt37131.kt"); + } + + @Test + @TestMetadata("kt46069.kt") + public void testKt46069() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt"); + } + + @Test + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/typeArguments.kt"); + } + + @Test + @TestMetadata("unboundMemberReferenceWithAdaptedArguments.kt") + public void testUnboundMemberReferenceWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("varargFunImportedFromObject.kt") + public void testVarargFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.kt"); + } + + @Test + @TestMetadata("withAdaptationForSam.kt") + public void testWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt"); + } + + @Test + @TestMetadata("withAdaptedArguments.kt") + public void testWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt"); + } + + @Test + @TestMetadata("withArgumentAdaptationAndReceiver.kt") + public void testWithArgumentAdaptationAndReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt"); + } + + @Test + @TestMetadata("withVarargViewedAsArray.kt") + public void testWithVarargViewedAsArray() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons") + @TestDataPath("$PROJECT_ROOT") + public class FloatingPointComparisons { + @Test + public void testAllFilesPresentInFloatingPointComparisons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/floatingPointComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("comparableWithDoubleOrFloat.kt") + public void testComparableWithDoubleOrFloat() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/comparableWithDoubleOrFloat.kt"); + } + + @Test + @TestMetadata("eqeqRhsConditionPossiblyAffectingLhs.kt") + public void testEqeqRhsConditionPossiblyAffectingLhs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/eqeqRhsConditionPossiblyAffectingLhs.kt"); + } + + @Test + @TestMetadata("floatingPointCompareTo.kt") + public void testFloatingPointCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.kt"); + } + + @Test + @TestMetadata("floatingPointEqeq.kt") + public void testFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEqeq.kt"); + } + + @Test + @TestMetadata("floatingPointEquals.kt") + public void testFloatingPointEquals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.kt"); + } + + @Test + @TestMetadata("floatingPointExcleq.kt") + public void testFloatingPointExcleq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.kt"); + } + + @Test + @TestMetadata("floatingPointLess.kt") + public void testFloatingPointLess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointLess.kt"); + } + + @Test + @TestMetadata("nullableAnyAsIntToDouble.kt") + public void testNullableAnyAsIntToDouble() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt"); + } + + @Test + @TestMetadata("nullableFloatingPointEqeq.kt") + public void testNullableFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt"); + } + + @Test + @TestMetadata("typeParameterWithPrimitiveNumericSupertype.kt") + public void testTypeParameterWithPrimitiveNumericSupertype() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.kt"); + } + + @Test + @TestMetadata("whenByFloatingPoint.kt") + public void testWhenByFloatingPoint() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arrayAsVarargAfterSamArgument_fi.kt") + public void testArrayAsVarargAfterSamArgument_fi() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.kt"); + } + + @Test + @TestMetadata("basicFunInterfaceConversion.kt") + public void testBasicFunInterfaceConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt"); + } + + @Test + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/partialSam.kt"); + } + + @Test + @TestMetadata("samConversionInVarargs.kt") + public void testSamConversionInVarargs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.kt"); + } + + @Test + @TestMetadata("samConversionInVarargsMixed.kt") + public void testSamConversionInVarargsMixed() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt"); + } + + @Test + @TestMetadata("samConversionOnCallableReference.kt") + public void testSamConversionOnCallableReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.kt"); + } + + @Test + @TestMetadata("samConversionsWithSmartCasts.kt") + public void testSamConversionsWithSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/firProblems") + @TestDataPath("$PROJECT_ROOT") + public class FirProblems { + @Test + public void testAllFilesPresentInFirProblems() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/firProblems"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("AnnotationLoader.kt") + public void testAnnotationLoader() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnnotationLoader.kt"); + } + + @Test + @TestMetadata("AnonymousAsReturnOfGenericFunction.kt") + public void testAnonymousAsReturnOfGenericFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.kt"); + } + + @Test + @TestMetadata("ArrayMap.kt") + public void testArrayMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ArrayMap.kt"); + } + + @Test + @TestMetadata("candidateSymbol.kt") + public void testCandidateSymbol() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/candidateSymbol.kt"); + } + + @Test + @TestMetadata("cannotCastToFunction.kt") + public void testCannotCastToFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/cannotCastToFunction.kt"); + } + + @Test + @TestMetadata("DeepCopyIrTree.kt") + public void testDeepCopyIrTree() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt"); + } + + @Test + @TestMetadata("deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/deprecated.kt"); + } + + @Test + @TestMetadata("emptyWhen.kt") + public void testEmptyWhen() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/emptyWhen.kt"); + } + + @Test + @TestMetadata("ErrorInDefaultValue.kt") + public void testErrorInDefaultValue() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.kt"); + } + + @Test + @TestMetadata("Fir2IrClassifierStorage.kt") + public void testFir2IrClassifierStorage() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.kt"); + } + + @Test + @TestMetadata("FirBuilder.kt") + public void testFirBuilder() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/FirBuilder.kt"); + } + + @Test + @TestMetadata("ImplicitReceiverStack.kt") + public void testImplicitReceiverStack() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt"); + } + + @Test + @TestMetadata("inapplicableCollectionSet.kt") + public void testInapplicableCollectionSet() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt"); + } + + @Test + @TestMetadata("InnerClassInAnonymous.kt") + public void testInnerClassInAnonymous() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt"); + } + + @Test + @TestMetadata("integerLiteralWithExpectedTypealiasType.kt") + public void testIntegerLiteralWithExpectedTypealiasType() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/integerLiteralWithExpectedTypealiasType.kt"); + } + + @Test + @TestMetadata("kt43342.kt") + public void testKt43342() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); + } + + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + + @Test + @TestMetadata("lambdaInEnumEntryConstructorCall.kt") + public void testLambdaInEnumEntryConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt"); + } + + @Test + @TestMetadata("localClassUsedBeforeDeclaration.kt") + public void testLocalClassUsedBeforeDeclaration() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.kt"); + } + + @Test + @TestMetadata("localCompanion.kt") + public void testLocalCompanion() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localCompanion.kt"); + } + + @Test + @TestMetadata("readWriteProperty.kt") + public void testReadWriteProperty() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/readWriteProperty.kt"); + } + + @Test + @TestMetadata("recursiveCapturedTypeInPropertyReference.kt") + public void testRecursiveCapturedTypeInPropertyReference() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt"); + } + + @Test + @TestMetadata("reflectGetOnNullableTypeAlias.kt") + public void testReflectGetOnNullableTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.kt"); + } + + @Test + @TestMetadata("SafeLetWithReturn.kt") + public void testSafeLetWithReturn() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt"); + } + + @Test + @TestMetadata("SignatureClash.kt") + public void testSignatureClash() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SignatureClash.kt"); + } + + @Test + @TestMetadata("SimpleTypeMarker.kt") + public void testSimpleTypeMarker() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt"); + } + + @Test + @TestMetadata("thisInEnumConstructor.kt") + public void testThisInEnumConstructor() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt"); + } + + @Test + @TestMetadata("TypeParameterBounds.kt") + public void testTypeParameterBounds() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/TypeParameterBounds.kt"); + } + + @Test + @TestMetadata("typeVariableAfterBuildMap.kt") + public void testTypeVariableAfterBuildMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); + } + + @Test + @TestMetadata("VarInInit.kt") + public void testVarInInit() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/VarInInit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/lambdas") + @TestDataPath("$PROJECT_ROOT") + public class Lambdas { + @Test + public void testAllFilesPresentInLambdas() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("anonymousFunction.kt") + public void testAnonymousFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/anonymousFunction.kt"); + } + + @Test + @TestMetadata("destructuringInLambda.kt") + public void testDestructuringInLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/destructuringInLambda.kt"); + } + + @Test + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/extensionLambda.kt"); + } + + @Test + @TestMetadata("justLambda.kt") + public void testJustLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/justLambda.kt"); + } + + @Test + @TestMetadata("lambdaReturningUnit.kt") + public void testLambdaReturningUnit() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/lambdaReturningUnit.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/localFunction.kt"); + } + + @Test + @TestMetadata("multipleImplicitReceivers.kt") + public void testMultipleImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/nonLocalReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties/backingField") + @TestDataPath("$PROJECT_ROOT") + public class BackingField { + @Test + public void testAllFilesPresentInBackingField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("backingFieldVisibility.kt") + public void testBackingFieldVisibility() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt"); + } + + @Test + @TestMetadata("explicitBackingFieldType.kt") + public void testExplicitBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt"); + } + + @Test + @TestMetadata("independentBackingFieldType.kt") + public void testIndependentBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt"); + } + + @Test + @TestMetadata("propertyTypeNarrowing.kt") + public void testPropertyTypeNarrowing() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/regressions") + @TestDataPath("$PROJECT_ROOT") + public class Regressions { + @Test + public void testAllFilesPresentInRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("coercionInLoop.kt") + public void testCoercionInLoop() throws Exception { + runTest("compiler/testData/ir/irText/regressions/coercionInLoop.kt"); + } + + @Test + @TestMetadata("integerCoercionToT.kt") + public void testIntegerCoercionToT() throws Exception { + runTest("compiler/testData/ir/irText/regressions/integerCoercionToT.kt"); + } + + @Test + @TestMetadata("kt24114.kt") + public void testKt24114() throws Exception { + runTest("compiler/testData/ir/irText/regressions/kt24114.kt"); + } + + @Test + @TestMetadata("newInferenceFixationOrder1.kt") + public void testNewInferenceFixationOrder1() throws Exception { + runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt"); + } + + @Test + @TestMetadata("typeAliasCtorForGenericClass.kt") + public void testTypeAliasCtorForGenericClass() throws Exception { + runTest("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/singletons") + @TestDataPath("$PROJECT_ROOT") + public class Singletons { + @Test + public void testAllFilesPresentInSingletons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/singletons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("compiler/testData/ir/irText/singletons/companion.kt"); + } + + @Test + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/ir/irText/singletons/enumEntry.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/ir/irText/singletons/object.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/stubs") + @TestDataPath("$PROJECT_ROOT") + public class Stubs { + @Test + public void testAllFilesPresentInStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("genericClassInDifferentModule.kt") + public void testGenericClassInDifferentModule() throws Exception { + runTest("compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt"); + } + + @Test + @TestMetadata("kotlinInnerClass.kt") + public void testKotlinInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/stubs/kotlinInnerClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/ir/irText/stubs/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + @TestMetadata("abbreviatedTypes.kt") + public void testAbbreviatedTypes() throws Exception { + runTest("compiler/testData/ir/irText/types/abbreviatedTypes.kt"); + } + + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("castsInsideCoroutineInference.kt") + public void testCastsInsideCoroutineInference() throws Exception { + runTest("compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt"); + } + + @Test + @TestMetadata("coercionToUnitInLambdaReturnValue.kt") + public void testCoercionToUnitInLambdaReturnValue() throws Exception { + runTest("compiler/testData/ir/irText/types/coercionToUnitInLambdaReturnValue.kt"); + } + + @Test + @TestMetadata("definitelyNonNull.kt") + public void testDefinitelyNonNull() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNull.kt"); + } + + @Test + @TestMetadata("definitelyNonNullOverride.kt") + public void testDefinitelyNonNullOverride() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullOverride.kt"); + } + + @Test + @TestMetadata("definitelyNonNullSAM.kt") + public void testDefinitelyNonNullSAM() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullSAM.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsArgument.kt") + public void testDefinitelyNotNullAsArgument() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsArgument.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsReceiver.kt") + public void testDefinitelyNotNullAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsReceiver.kt"); + } + + @Test + @TestMetadata("definitelyNotNullWithIntersection1.kt") + public void testDefinitelyNotNullWithIntersection1() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.kt"); + } + + @Test + @TestMetadata("dontLeaveStubTypesInSetter.kt") + public void testDontLeaveStubTypesInSetter() throws Exception { + runTest("compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt"); + } + + @Test + @TestMetadata("genericDelegatedDeepProperty.kt") + public void testGenericDelegatedDeepProperty() throws Exception { + runTest("compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt"); + } + + @Test + @TestMetadata("genericFunWithStar.kt") + public void testGenericFunWithStar() throws Exception { + runTest("compiler/testData/ir/irText/types/genericFunWithStar.kt"); + } + + @Test + @TestMetadata("genericPropertyReferenceType.kt") + public void testGenericPropertyReferenceType() throws Exception { + runTest("compiler/testData/ir/irText/types/genericPropertyReferenceType.kt"); + } + + @Test + @TestMetadata("inStarProjectionInReceiverType.kt") + public void testInStarProjectionInReceiverType() throws Exception { + runTest("compiler/testData/ir/irText/types/inStarProjectionInReceiverType.kt"); + } + + @Test + @TestMetadata("intersectionType1.kt") + public void testIntersectionType1() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType1.kt"); + } + + @Test + @TestMetadata("intersectionType2.kt") + public void testIntersectionType2() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType2.kt"); + } + + @Test + @TestMetadata("intersectionType3.kt") + public void testIntersectionType3() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType3.kt"); + } + + @Test + @TestMetadata("intersectionTypeInSamType.kt") + public void testIntersectionTypeInSamType() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionTypeInSamType.kt"); + } + + @Test + @TestMetadata("kt36143.kt") + public void testKt36143() throws Exception { + runTest("compiler/testData/ir/irText/types/kt36143.kt"); + } + + @Test + @TestMetadata("kt49526.kt") + public void testKt49526() throws Exception { + runTest("compiler/testData/ir/irText/types/kt49526.kt"); + } + + @Test + @TestMetadata("localVariableOfIntersectionType.kt") + public void testLocalVariableOfIntersectionType() throws Exception { + runTest("compiler/testData/ir/irText/types/localVariableOfIntersectionType.kt"); + } + + @Test + @TestMetadata("smartCastOnFakeOverrideReceiver.kt") + public void testSmartCastOnFakeOverrideReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.kt"); + } + + @Test + @TestMetadata("smartCastOnReceiverOfGenericType.kt") + public void testSmartCastOnReceiverOfGenericType() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.kt"); + } + + @Test + @TestMetadata("starProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/ir/irText/types/starProjection.kt"); + } + + @Test + @TestMetadata("typeAliasWithUnsafeVariance.kt") + public void testTypeAliasWithUnsafeVariance() throws Exception { + runTest("compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt"); + } + + @Test + @TestMetadata("typeCheckOnDefinitelyNotNull.kt") + public void testTypeCheckOnDefinitelyNotNull() throws Exception { + runTest("compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks") + @TestDataPath("$PROJECT_ROOT") + public class NullChecks { + @Test + public void testAllFilesPresentInNullChecks() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOnLambdaResult { + @Test + public void testAllFilesPresentInNullCheckOnLambdaResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + } +} diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java new file mode 100644 index 00000000000..ba6405c7c14 --- /dev/null +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/ClassicJsIrTextTestGenerated.java @@ -0,0 +1,2871 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.js.test.ir; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@TestMetadata("compiler/testData/ir/irText") +@TestDataPath("$PROJECT_ROOT") +public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { + @Test + public void testAllFilesPresentInIrText() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + @TestMetadata("47424.kt") + public void test47424() throws Exception { + runTest("compiler/testData/ir/irText/classes/47424.kt"); + } + + @Test + @TestMetadata("abstractMembers.kt") + public void testAbstractMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/abstractMembers.kt"); + } + + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationClasses.kt") + public void testAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/annotationClasses.kt"); + } + + @Test + @TestMetadata("argumentReorderingInDelegatingConstructorCall.kt") + public void testArgumentReorderingInDelegatingConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt"); + } + + @Test + @TestMetadata("clashingFakeOverrideSignatures.kt") + public void testClashingFakeOverrideSignatures() throws Exception { + runTest("compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt"); + } + + @Test + @TestMetadata("classMembers.kt") + public void testClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/classMembers.kt"); + } + + @Test + @TestMetadata("classes.kt") + public void testClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/classes.kt"); + } + + @Test + @TestMetadata("cloneable.kt") + public void testCloneable() throws Exception { + runTest("compiler/testData/ir/irText/classes/cloneable.kt"); + } + + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() throws Exception { + runTest("compiler/testData/ir/irText/classes/companionObject.kt"); + } + + @Test + @TestMetadata("delegatedGenericImplementation.kt") + public void testDelegatedGenericImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt"); + } + + @Test + @TestMetadata("delegatedImplementation.kt") + public void testDelegatedImplementation() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementation.kt"); + } + + @Test + @TestMetadata("delegatedImplementationWithExplicitOverride.kt") + public void testDelegatedImplementationWithExplicitOverride() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt"); + } + + @Test + @TestMetadata("delegatingConstructorCallToTypeAliasConstructor.kt") + public void testDelegatingConstructorCallToTypeAliasConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.kt"); + } + + @Test + @TestMetadata("delegatingConstructorCallsInSecondaryConstructors.kt") + public void testDelegatingConstructorCallsInSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.kt"); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/ir/irText/classes/enum.kt"); + } + + @Test + @TestMetadata("enumClassModality.kt") + public void testEnumClassModality() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumClassModality.kt"); + } + + @Test + @TestMetadata("enumWithMultipleCtors.kt") + public void testEnumWithMultipleCtors() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt"); + } + + @Test + @TestMetadata("enumWithSecondaryCtor.kt") + public void testEnumWithSecondaryCtor() throws Exception { + runTest("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt"); + } + + @Test + @TestMetadata("initBlock.kt") + public void testInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/classes/initBlock.kt"); + } + + @Test + @TestMetadata("initVal.kt") + public void testInitVal() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVal.kt"); + } + + @Test + @TestMetadata("initValInLambda.kt") + public void testInitValInLambda() throws Exception { + runTest("compiler/testData/ir/irText/classes/initValInLambda.kt"); + } + + @Test + @TestMetadata("initVar.kt") + public void testInitVar() throws Exception { + runTest("compiler/testData/ir/irText/classes/initVar.kt"); + } + + @Test + @TestMetadata("inlineClass.kt") + public void testInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClass.kt"); + } + + @Test + @TestMetadata("inlineClassSyntheticMethods.kt") + public void testInlineClassSyntheticMethods() throws Exception { + runTest("compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt"); + } + + @Test + @TestMetadata("innerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClass.kt"); + } + + @Test + @TestMetadata("innerClassWithDelegatingConstructor.kt") + public void testInnerClassWithDelegatingConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.kt"); + } + + @Test + @TestMetadata("kt19306.kt") + public void testKt19306() throws Exception { + runTest("compiler/testData/ir/irText/classes/kt19306.kt"); + } + + @Test + @TestMetadata("localClasses.kt") + public void testLocalClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/localClasses.kt"); + } + + @Test + @TestMetadata("objectLiteralExpressions.kt") + public void testObjectLiteralExpressions() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectLiteralExpressions.kt"); + } + + @Test + @TestMetadata("objectWithInitializers.kt") + public void testObjectWithInitializers() throws Exception { + runTest("compiler/testData/ir/irText/classes/objectWithInitializers.kt"); + } + + @Test + @TestMetadata("outerClassAccess.kt") + public void testOuterClassAccess() throws Exception { + runTest("compiler/testData/ir/irText/classes/outerClassAccess.kt"); + } + + @Test + @TestMetadata("primaryConstructor.kt") + public void testPrimaryConstructor() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructor.kt"); + } + + @Test + @TestMetadata("primaryConstructorWithSuperConstructorCall.kt") + public void testPrimaryConstructorWithSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("qualifiedSuperCalls.kt") + public void testQualifiedSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/qualifiedSuperCalls.kt"); + } + + @Test + @TestMetadata("sealedClasses.kt") + public void testSealedClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/sealedClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithInitializersFromClassBody.kt") + public void testSecondaryConstructorWithInitializersFromClassBody() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt"); + } + + @Test + @TestMetadata("secondaryConstructors.kt") + public void testSecondaryConstructors() throws Exception { + runTest("compiler/testData/ir/irText/classes/secondaryConstructors.kt"); + } + + @Test + @TestMetadata("smartCastInValInitialization.kt") + public void testSmartCastInValInitialization() throws Exception { + runTest("compiler/testData/ir/irText/classes/smartCastInValInitialization.kt"); + } + + @Test + @TestMetadata("superCalls.kt") + public void testSuperCalls() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCalls.kt"); + } + + @Test + @TestMetadata("superCallsComposed.kt") + public void testSuperCallsComposed() throws Exception { + runTest("compiler/testData/ir/irText/classes/superCallsComposed.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/classes/dataClasses") + @TestDataPath("$PROJECT_ROOT") + public class DataClasses { + @Test + public void testAllFilesPresentInDataClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/classes/dataClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dataClassWithArrayMembers.kt") + public void testDataClassWithArrayMembers() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.kt"); + } + + @Test + @TestMetadata("dataClasses.kt") + public void testDataClasses() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt"); + } + + @Test + @TestMetadata("dataClassesGeneric.kt") + public void testDataClassesGeneric() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.kt"); + } + + @Test + @TestMetadata("delegationInSealed.kt") + public void testDelegationInSealed() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.kt"); + } + + @Test + @TestMetadata("kt31649.kt") + public void testKt31649() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt31649.kt"); + } + + @Test + @TestMetadata("kt49936.kt") + public void testKt49936() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/kt49936.kt"); + } + + @Test + @TestMetadata("lambdaInDataClassDefaultParameter.kt") + public void testLambdaInDataClassDefaultParameter() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.kt"); + } + + @Test + @TestMetadata("openDataClass.kt") + public void testOpenDataClass() throws Exception { + runTest("compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations") + @TestDataPath("$PROJECT_ROOT") + public class Declarations { + @Test + public void testAllFilesPresentInDeclarations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catchParameterInTopLevelProperty.kt") + public void testCatchParameterInTopLevelProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.kt"); + } + + @Test + @TestMetadata("classLevelProperties.kt") + public void testClassLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/classLevelProperties.kt"); + } + + @Test + @TestMetadata("constValInitializers.kt") + public void testConstValInitializers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/constValInitializers.kt"); + } + + @Test + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/defaultArguments.kt"); + } + + @Test + @TestMetadata("delegatedProperties.kt") + public void testDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/delegatedProperties.kt"); + } + + @Test + @TestMetadata("deprecatedProperty.kt") + public void testDeprecatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/deprecatedProperty.kt"); + } + + @Test + @TestMetadata("extensionProperties.kt") + public void testExtensionProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/extensionProperties.kt"); + } + + @Test + @TestMetadata("fakeOverrides.kt") + public void testFakeOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fakeOverrides.kt"); + } + + @Test + @TestMetadata("fileWithTypeAliasesOnly.kt") + public void testFileWithTypeAliasesOnly() throws Exception { + runTest("compiler/testData/ir/irText/declarations/fileWithTypeAliasesOnly.kt"); + } + + @Test + @TestMetadata("genericDelegatedProperty.kt") + public void testGenericDelegatedProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/genericDelegatedProperty.kt"); + } + + @Test + @TestMetadata("inlineCollectionOfInlineClass.kt") + public void testInlineCollectionOfInlineClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt"); + } + + @Test + @TestMetadata("interfaceProperties.kt") + public void testInterfaceProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/interfaceProperties.kt"); + } + + @Test + @TestMetadata("kt27005.kt") + public void testKt27005() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt27005.kt"); + } + + @Test + @TestMetadata("kt35550.kt") + public void testKt35550() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt35550.kt"); + } + + @Test + @TestMetadata("kt45308.kt") + public void testKt45308() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt45308.kt"); + } + + @Test + @TestMetadata("kt47527.kt") + public void testKt47527() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt47527.kt"); + } + + @Test + @TestMetadata("kt52677.kt") + public void testKt52677() throws Exception { + runTest("compiler/testData/ir/irText/declarations/kt52677.kt"); + } + + @Test + @TestMetadata("localClassWithOverrides.kt") + public void testLocalClassWithOverrides() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localClassWithOverrides.kt"); + } + + @Test + @TestMetadata("localDelegatedProperties.kt") + public void testLocalDelegatedProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localDelegatedProperties.kt"); + } + + @Test + @TestMetadata("localVarInDoWhile.kt") + public void testLocalVarInDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/declarations/localVarInDoWhile.kt"); + } + + @Test + @TestMetadata("packageLevelProperties.kt") + public void testPackageLevelProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/packageLevelProperties.kt"); + } + + @Test + @TestMetadata("primaryCtorDefaultArguments.kt") + public void testPrimaryCtorDefaultArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.kt"); + } + + @Test + @TestMetadata("primaryCtorProperties.kt") + public void testPrimaryCtorProperties() throws Exception { + runTest("compiler/testData/ir/irText/declarations/primaryCtorProperties.kt"); + } + + @Test + @TestMetadata("typeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/declarations/typeAlias.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationOnClassWithInitializer.kt") + public void testAnnotationOnClassWithInitializer() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.kt"); + } + + @Test + @TestMetadata("annotationsInAnnotationArguments.kt") + public void testAnnotationsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("annotationsOnDelegatedMembers.kt") + public void testAnnotationsOnDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt"); + } + + @Test + @TestMetadata("annotationsWithDefaultParameterValues.kt") + public void testAnnotationsWithDefaultParameterValues() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.kt"); + } + + @Test + @TestMetadata("annotationsWithVarargParameters.kt") + public void testAnnotationsWithVarargParameters() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.kt"); + } + + @Test + @TestMetadata("arrayInAnnotationArguments.kt") + public void testArrayInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("classLiteralInAnnotation.kt") + public void testClassLiteralInAnnotation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt"); + } + + @Test + @TestMetadata("classesWithAnnotations.kt") + public void testClassesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt"); + } + + @Test + @TestMetadata("constExpressionsInAnnotationArguments.kt") + public void testConstExpressionsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("constructorsWithAnnotations.kt") + public void testConstructorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegateFieldWithAnnotations.kt") + public void testDelegateFieldWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt"); + } + + @Test + @TestMetadata("delegatedPropertyAccessorsWithAnnotations.kt") + public void testDelegatedPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumEntriesWithAnnotations.kt") + public void testEnumEntriesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt"); + } + + @Test + @TestMetadata("enumsInAnnotationArguments.kt") + public void testEnumsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("fieldsWithAnnotations.kt") + public void testFieldsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.kt"); + } + + @Test + @TestMetadata("fileAnnotations.kt") + public void testFileAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/fileAnnotations.kt"); + } + + @Test + @TestMetadata("functionsWithAnnotations.kt") + public void testFunctionsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.kt"); + } + + @Test + @TestMetadata("genericAnnotationClasses.kt") + public void testGenericAnnotationClasses() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.kt"); + } + + @Test + @TestMetadata("inheritingDeprecation.kt") + public void testInheritingDeprecation() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.kt"); + } + + @Test + @TestMetadata("localDelegatedPropertiesWithAnnotations.kt") + public void testLocalDelegatedPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("multipleAnnotationsInSquareBrackets.kt") + public void testMultipleAnnotationsInSquareBrackets() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.kt"); + } + + @Test + @TestMetadata("primaryConstructorParameterWithAnnotations.kt") + public void testPrimaryConstructorParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertiesWithAnnotations.kt") + public void testPropertiesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsFromClassHeaderWithAnnotations.kt") + public void testPropertyAccessorsFromClassHeaderWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertyAccessorsWithAnnotations.kt") + public void testPropertyAccessorsWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.kt"); + } + + @Test + @TestMetadata("propertySetterParameterWithAnnotations.kt") + public void testPropertySetterParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("receiverParameterWithAnnotations.kt") + public void testReceiverParameterWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.kt"); + } + + @Test + @TestMetadata("spreadOperatorInAnnotationArguments.kt") + public void testSpreadOperatorInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("typeAliasesWithAnnotations.kt") + public void testTypeAliasesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.kt"); + } + + @Test + @TestMetadata("typeParametersWithAnnotations.kt") + public void testTypeParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("valueParametersWithAnnotations.kt") + public void testValueParametersWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.kt"); + } + + @Test + @TestMetadata("varargsInAnnotationArguments.kt") + public void testVarargsInAnnotationArguments() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("variablesWithAnnotations.kt") + public void testVariablesWithAnnotations() throws Exception { + runTest("compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); + } + + @Test + @TestMetadata("contextReceiverMethod.kt") + public void testContextReceiverMethod() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); + } + + @Test + @TestMetadata("contextualPrimaryConstructorWithParams.kt") + public void testContextualPrimaryConstructorWithParams() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); + } + + @Test + @TestMetadata("function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/function.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt"); + } + + @Test + @TestMetadata("genericOuterClass.kt") + public void testGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); + } + + @Test + @TestMetadata("lazy.kt") + public void testLazy() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt"); + } + + @Test + @TestMetadata("overloadPriority.kt") + public void testOverloadPriority() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt"); + } + + @Test + @TestMetadata("overloading.kt") + public void testOverloading() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); + } + + @Test + @TestMetadata("plusMatrix.kt") + public void testPlusMatrix() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/property.kt"); + } + + @Test + @TestMetadata("thisWithCustomLabel.kt") + public void testThisWithCustomLabel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.kt"); + } + + @Test + @TestMetadata("typeParameterAsContextReceiver.kt") + public void testTypeParameterAsContextReceiver() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") + @TestDataPath("$PROJECT_ROOT") + public class FromKEEP { + @Test + public void testAllFilesPresentInFromKEEP() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/jvmRecord") + @TestDataPath("$PROJECT_ROOT") + public class JvmRecord { + @Test + public void testAllFilesPresentInJvmRecord() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/jvmRecord"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/multiplatform") + @TestDataPath("$PROJECT_ROOT") + public class Multiplatform { + @Test + public void testAllFilesPresentInMultiplatform() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("expectClassInherited.kt") + public void testExpectClassInherited() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt"); + } + + @Test + @TestMetadata("expectedEnumClass.kt") + public void testExpectedEnumClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt"); + } + + @Test + @TestMetadata("expectedEnumClass2.kt") + public void testExpectedEnumClass2() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt"); + } + + @Test + @TestMetadata("expectedSealedClass.kt") + public void testExpectedSealedClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/class.kt"); + } + + @Test + @TestMetadata("constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/constructor.kt"); + } + + @Test + @TestMetadata("dataClassMembers.kt") + public void testDataClassMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt"); + } + + @Test + @TestMetadata("defaultPropertyAccessors.kt") + public void testDefaultPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.kt"); + } + + @Test + @TestMetadata("delegatedMembers.kt") + public void testDelegatedMembers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt"); + } + + @Test + @TestMetadata("fun.kt") + public void testFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/fun.kt"); + } + + @Test + @TestMetadata("genericInnerClass.kt") + public void testGenericInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/genericInnerClass.kt"); + } + + @Test + @TestMetadata("lambdas.kt") + public void testLambdas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/lambdas.kt"); + } + + @Test + @TestMetadata("localFun.kt") + public void testLocalFun() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/localFun.kt"); + } + + @Test + @TestMetadata("propertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/propertyAccessors.kt"); + } + + @Test + @TestMetadata("typeParameterBeforeBound.kt") + public void testTypeParameterBeforeBound() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.kt"); + } + + @Test + @TestMetadata("typeParameterBoundedBySubclass.kt") + public void testTypeParameterBoundedBySubclass() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.kt"); + } + + @Test + @TestMetadata("useNextParamInLambda.kt") + public void testUseNextParamInLambda() throws Exception { + runTest("compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/declarations/provideDelegate") + @TestDataPath("$PROJECT_ROOT") + public class ProvideDelegate { + @Test + public void testAllFilesPresentInProvideDelegate() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/provideDelegate"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("differentReceivers.kt") + public void testDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/local.kt"); + } + + @Test + @TestMetadata("localDifferentReceivers.kt") + public void testLocalDifferentReceivers() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.kt"); + } + + @Test + @TestMetadata("member.kt") + public void testMember() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/member.kt"); + } + + @Test + @TestMetadata("memberExtension.kt") + public void testMemberExtension() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt"); + } + + @Test + @TestMetadata("topLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/ir/irText/declarations/provideDelegate/topLevel.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/errors") + @TestDataPath("$PROJECT_ROOT") + public class Errors { + @Test + public void testAllFilesPresentInErrors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/errors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("suppressedNonPublicCall.kt") + public void testSuppressedNonPublicCall() throws Exception { + runTest("compiler/testData/ir/irText/errors/suppressedNonPublicCall.kt"); + } + + @Test + @TestMetadata("unresolvedReference.kt") + public void testUnresolvedReference() throws Exception { + runTest("compiler/testData/ir/irText/errors/unresolvedReference.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions") + @TestDataPath("$PROJECT_ROOT") + public class Expressions { + @Test + public void testAllFilesPresentInExpressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("argumentMappedWithError.kt") + public void testArgumentMappedWithError() throws Exception { + runTest("compiler/testData/ir/irText/expressions/argumentMappedWithError.kt"); + } + + @Test + @TestMetadata("arrayAccess.kt") + public void testArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAccess.kt"); + } + + @Test + @TestMetadata("arrayAssignment.kt") + public void testArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAssignment.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment1.kt") + public void testArrayAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt"); + } + + @Test + @TestMetadata("arrayAugmentedAssignment2.kt") + public void testArrayAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.kt"); + } + + @Test + @TestMetadata("assignments.kt") + public void testAssignments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/assignments.kt"); + } + + @Test + @TestMetadata("augmentedAssignment1.kt") + public void testAugmentedAssignment1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment1.kt"); + } + + @Test + @TestMetadata("augmentedAssignment2.kt") + public void testAugmentedAssignment2() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignment2.kt"); + } + + @Test + @TestMetadata("augmentedAssignmentWithExpression.kt") + public void testAugmentedAssignmentWithExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.kt"); + } + + @Test + @TestMetadata("badBreakContinue.kt") + public void testBadBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badBreakContinue.kt"); + } + + @Test + @TestMetadata("badInlinedBreakContinue.kt") + public void testBadInlinedBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt"); + } + + @Test + @TestMetadata("bangbang.kt") + public void testBangbang() throws Exception { + runTest("compiler/testData/ir/irText/expressions/bangbang.kt"); + } + + @Test + @TestMetadata("booleanConstsInAndAndOrOr.kt") + public void testBooleanConstsInAndAndOrOr() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.kt"); + } + + @Test + @TestMetadata("booleanOperators.kt") + public void testBooleanOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/booleanOperators.kt"); + } + + @Test + @TestMetadata("boundCallableReferences.kt") + public void testBoundCallableReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boundCallableReferences.kt"); + } + + @Test + @TestMetadata("boxOk.kt") + public void testBoxOk() throws Exception { + runTest("compiler/testData/ir/irText/expressions/boxOk.kt"); + } + + @Test + @TestMetadata("breakContinue.kt") + public void testBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinue.kt"); + } + + @Test + @TestMetadata("breakContinueInLoopHeader.kt") + public void testBreakContinueInLoopHeader() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.kt"); + } + + @Test + @TestMetadata("breakContinueInWhen.kt") + public void testBreakContinueInWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/breakContinueInWhen.kt"); + } + + @Test + @TestMetadata("builtinOperators.kt") + public void testBuiltinOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/builtinOperators.kt"); + } + + @Test + @TestMetadata("callWithReorderedArguments.kt") + public void testCallWithReorderedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt"); + } + + @Test + @TestMetadata("calls.kt") + public void testCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/calls.kt"); + } + + @Test + @TestMetadata("castToTypeParameter.kt") + public void testCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/castToTypeParameter.kt"); + } + + @Test + @TestMetadata("catchParameterAccess.kt") + public void testCatchParameterAccess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/catchParameterAccess.kt"); + } + + @Test + @TestMetadata("chainOfSafeCalls.kt") + public void testChainOfSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainOfSafeCalls.kt"); + } + + @Test + @TestMetadata("chainedFunSuspendConversionForSimpleExpression.kt") + public void testChainedFunSuspendConversionForSimpleExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.kt"); + } + + @Test + @TestMetadata("complexAugmentedAssignment.kt") + public void testComplexAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/complexAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("contructorCall.kt") + public void testContructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/contructorCall.kt"); + } + + @Test + @TestMetadata("conventionComparisons.kt") + public void testConventionComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/conventionComparisons.kt"); + } + + @Test + @TestMetadata("destructuring1.kt") + public void testDestructuring1() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuring1.kt"); + } + + @Test + @TestMetadata("destructuringWithUnderscore.kt") + public void testDestructuringWithUnderscore() throws Exception { + runTest("compiler/testData/ir/irText/expressions/destructuringWithUnderscore.kt"); + } + + @Test + @TestMetadata("dotQualified.kt") + public void testDotQualified() throws Exception { + runTest("compiler/testData/ir/irText/expressions/dotQualified.kt"); + } + + @Test + @TestMetadata("elvis.kt") + public void testElvis() throws Exception { + runTest("compiler/testData/ir/irText/expressions/elvis.kt"); + } + + @Test + @TestMetadata("enumEntryAsReceiver.kt") + public void testEnumEntryAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt"); + } + + @Test + @TestMetadata("enumEntryReferenceFromEnumEntryClass.kt") + public void testEnumEntryReferenceFromEnumEntryClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt"); + } + + @Test + @TestMetadata("equality.kt") + public void testEquality() throws Exception { + runTest("compiler/testData/ir/irText/expressions/equality.kt"); + } + + @Test + @TestMetadata("exhaustiveWhenElseBranch.kt") + public void testExhaustiveWhenElseBranch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt"); + } + + @Test + @TestMetadata("extFunInvokeAsFun.kt") + public void testExtFunInvokeAsFun() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunInvokeAsFun.kt"); + } + + @Test + @TestMetadata("extFunSafeInvoke.kt") + public void testExtFunSafeInvoke() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extFunSafeInvoke.kt"); + } + + @Test + @TestMetadata("extensionPropertyGetterCall.kt") + public void testExtensionPropertyGetterCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.kt"); + } + + @Test + @TestMetadata("field.kt") + public void testField() throws Exception { + runTest("compiler/testData/ir/irText/expressions/field.kt"); + } + + @Test + @TestMetadata("for.kt") + public void testFor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/for.kt"); + } + + @Test + @TestMetadata("forWithBreakContinue.kt") + public void testForWithBreakContinue() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithBreakContinue.kt"); + } + + @Test + @TestMetadata("forWithImplicitReceivers.kt") + public void testForWithImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt"); + } + + @Test + @TestMetadata("funImportedFromObject.kt") + public void testFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funImportedFromObject.kt"); + } + + @Test + @TestMetadata("funInterfaceConstructorReference.kt") + public void testFunInterfaceConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.kt"); + } + + @Test + @TestMetadata("genericConstructorCallWithTypeArguments.kt") + public void testGenericConstructorCallWithTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt"); + } + + @Test + @TestMetadata("genericPropertyCall.kt") + public void testGenericPropertyCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyCall.kt"); + } + + @Test + @TestMetadata("genericPropertyRef.kt") + public void testGenericPropertyRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt"); + } + + @Test + @TestMetadata("identity.kt") + public void testIdentity() throws Exception { + runTest("compiler/testData/ir/irText/expressions/identity.kt"); + } + + @Test + @TestMetadata("ifElseIf.kt") + public void testIfElseIf() throws Exception { + runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt"); + } + + @Test + @TestMetadata("implicitCastInReturnFromConstructor.kt") + public void testImplicitCastInReturnFromConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.kt"); + } + + @Test + @TestMetadata("implicitCastToNonNull.kt") + public void testImplicitCastToNonNull() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToNonNull.kt"); + } + + @Test + @TestMetadata("implicitCastToTypeParameter.kt") + public void testImplicitCastToTypeParameter() throws Exception { + runTest("compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.kt"); + } + + @Test + @TestMetadata("in.kt") + public void testIn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/in.kt"); + } + + @Test + @TestMetadata("incrementDecrement.kt") + public void testIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/incrementDecrement.kt"); + } + + @Test + @TestMetadata("interfaceThisRef.kt") + public void testInterfaceThisRef() throws Exception { + runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt"); + } + + @Test + @TestMetadata("kt16905.kt") + public void testKt16905() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt16905.kt"); + } + + @Test + @TestMetadata("kt23030.kt") + public void testKt23030() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt23030.kt"); + } + + @Test + @TestMetadata("kt24804.kt") + public void testKt24804() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt24804.kt"); + } + + @Test + @TestMetadata("kt27933.kt") + public void testKt27933() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt27933.kt"); + } + + @Test + @TestMetadata("kt28006.kt") + public void testKt28006() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28006.kt"); + } + + @Test + @TestMetadata("kt28456.kt") + public void testKt28456() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456.kt"); + } + + @Test + @TestMetadata("kt28456a.kt") + public void testKt28456a() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456a.kt"); + } + + @Test + @TestMetadata("kt28456b.kt") + public void testKt28456b() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt28456b.kt"); + } + + @Test + @TestMetadata("kt30020.kt") + public void testKt30020() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30020.kt"); + } + + @Test + @TestMetadata("kt30796.kt") + public void testKt30796() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt30796.kt"); + } + + @Test + @TestMetadata("kt35730.kt") + public void testKt35730() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt35730.kt"); + } + + @Test + @TestMetadata("kt36956.kt") + public void testKt36956() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36956.kt"); + } + + @Test + @TestMetadata("kt36963.kt") + public void testKt36963() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt36963.kt"); + } + + @Test + @TestMetadata("kt37570.kt") + public void testKt37570() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37570.kt"); + } + + @Test + @TestMetadata("kt37779.kt") + public void testKt37779() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt37779.kt"); + } + + @Test + @TestMetadata("kt45022.kt") + public void testKt45022() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt45022.kt"); + } + + @Test + @TestMetadata("kt47245.kt") + public void testKt47245() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47245.kt"); + } + + @Test + @TestMetadata("kt47450.kt") + public void testKt47450() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt47450.kt"); + } + + @Test + @TestMetadata("kt48708.kt") + public void testKt48708() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48708.kt"); + } + + @Test + @TestMetadata("kt48806.kt") + public void testKt48806() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt48806.kt"); + } + + @Test + @TestMetadata("kt49203.kt") + public void testKt49203() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt49203.kt"); + } + + @Test + @TestMetadata("kt50028.kt") + public void testKt50028() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt50028.kt"); + } + + @Test + @TestMetadata("kt51036.kt") + public void testKt51036() throws Exception { + runTest("compiler/testData/ir/irText/expressions/kt51036.kt"); + } + + @Test + @TestMetadata("lambdaInCAO.kt") + public void testLambdaInCAO() throws Exception { + runTest("compiler/testData/ir/irText/expressions/lambdaInCAO.kt"); + } + + @Test + @TestMetadata("literals.kt") + public void testLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/literals.kt"); + } + + @Test + @TestMetadata("memberTypeArguments.kt") + public void testMemberTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/memberTypeArguments.kt"); + } + + @Test + @TestMetadata("membersImportedFromObject.kt") + public void testMembersImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt"); + } + + @Test + @TestMetadata("multipleSmartCasts.kt") + public void testMultipleSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleSmartCasts.kt"); + } + + @Test + @TestMetadata("multipleThisReferences.kt") + public void testMultipleThisReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/multipleThisReferences.kt"); + } + + @Test + @TestMetadata("objectAsCallable.kt") + public void testObjectAsCallable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectAsCallable.kt"); + } + + @Test + @TestMetadata("objectByNameInsideObject.kt") + public void testObjectByNameInsideObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectByNameInsideObject.kt"); + } + + @Test + @TestMetadata("objectReference.kt") + public void testObjectReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReference.kt"); + } + + @Test + @TestMetadata("objectReferenceInClosureInSuperConstructorCall.kt") + public void testObjectReferenceInClosureInSuperConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.kt"); + } + + @Test + @TestMetadata("objectReferenceInFieldInitializer.kt") + public void testObjectReferenceInFieldInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.kt"); + } + + @Test + @TestMetadata("outerClassInstanceReference.kt") + public void testOuterClassInstanceReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/outerClassInstanceReference.kt"); + } + + @Test + @TestMetadata("primitiveComparisons.kt") + public void testPrimitiveComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitiveComparisons.kt"); + } + + @Test + @TestMetadata("primitivesImplicitConversions.kt") + public void testPrimitivesImplicitConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/primitivesImplicitConversions.kt"); + } + + @Test + @TestMetadata("references.kt") + public void testReferences() throws Exception { + runTest("compiler/testData/ir/irText/expressions/references.kt"); + } + + @Test + @TestMetadata("reflectionLiterals.kt") + public void testReflectionLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/reflectionLiterals.kt"); + } + + @Test + @TestMetadata("safeAssignment.kt") + public void testSafeAssignment() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeAssignment.kt"); + } + + @Test + @TestMetadata("safeCallWithIncrementDecrement.kt") + public void testSafeCallWithIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.kt"); + } + + @Test + @TestMetadata("safeCalls.kt") + public void testSafeCalls() throws Exception { + runTest("compiler/testData/ir/irText/expressions/safeCalls.kt"); + } + + @Test + @TestMetadata("signedToUnsignedConversions.kt") + public void testSignedToUnsignedConversions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt"); + } + + @Test + @TestMetadata("simpleOperators.kt") + public void testSimpleOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleOperators.kt"); + } + + @Test + @TestMetadata("simpleUnaryOperators.kt") + public void testSimpleUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt"); + } + + @Test + @TestMetadata("smartCasts.kt") + public void testSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCasts.kt"); + } + + @Test + @TestMetadata("smartCastsWithDestructuring.kt") + public void testSmartCastsWithDestructuring() throws Exception { + runTest("compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.kt"); + } + + @Test + @TestMetadata("specializedTypeAliasConstructorCall.kt") + public void testSpecializedTypeAliasConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt"); + } + + @Test + @TestMetadata("stringComparisons.kt") + public void testStringComparisons() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringComparisons.kt"); + } + + @Test + @TestMetadata("stringPlus.kt") + public void testStringPlus() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringPlus.kt"); + } + + @Test + @TestMetadata("stringTemplates.kt") + public void testStringTemplates() throws Exception { + runTest("compiler/testData/ir/irText/expressions/stringTemplates.kt"); + } + + @Test + @TestMetadata("suspendConversionForExtensionFunction.kt") + public void testSuspendConversionForExtensionFunction() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt"); + } + + @Test + @TestMetadata("suspendConversionInVararg.kt") + public void testSuspendConversionInVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionInVararg.kt"); + } + + @Test + @TestMetadata("suspendConversionOnArbitraryExpression.kt") + public void testSuspendConversionOnArbitraryExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.kt"); + } + + @Test + @TestMetadata("suspendConversionWithFunInterfaces.kt") + public void testSuspendConversionWithFunInterfaces() throws Exception { + runTest("compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.kt"); + } + + @Test + @TestMetadata("temporaryInEnumEntryInitializer.kt") + public void testTemporaryInEnumEntryInitializer() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt"); + } + + @Test + @TestMetadata("temporaryInInitBlock.kt") + public void testTemporaryInInitBlock() throws Exception { + runTest("compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt"); + } + + @Test + @TestMetadata("thisOfGenericOuterClass.kt") + public void testThisOfGenericOuterClass() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt"); + } + + @Test + @TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt") + public void testThisRefToObjectInNestedClassConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.kt"); + } + + @Test + @TestMetadata("thisReferenceBeforeClassDeclared.kt") + public void testThisReferenceBeforeClassDeclared() throws Exception { + runTest("compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt"); + } + + @Test + @TestMetadata("throw.kt") + public void testThrow() throws Exception { + runTest("compiler/testData/ir/irText/expressions/throw.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatch.kt"); + } + + @Test + @TestMetadata("tryCatchWithImplicitCast.kt") + public void testTryCatchWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt"); + } + + @Test + @TestMetadata("typeAliasConstructorReference.kt") + public void testTypeAliasConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeAliasConstructorReference.kt"); + } + + @Test + @TestMetadata("typeOperators.kt") + public void testTypeOperators() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeOperators.kt"); + } + + @Test + @TestMetadata("typeParameterClassLiteral.kt") + public void testTypeParameterClassLiteral() throws Exception { + runTest("compiler/testData/ir/irText/expressions/typeParameterClassLiteral.kt"); + } + + @Test + @TestMetadata("unsignedIntegerLiterals.kt") + public void testUnsignedIntegerLiterals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt"); + } + + @Test + @TestMetadata("useImportedMember.kt") + public void testUseImportedMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/useImportedMember.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("compiler/testData/ir/irText/expressions/values.kt"); + } + + @Test + @TestMetadata("vararg.kt") + public void testVararg() throws Exception { + runTest("compiler/testData/ir/irText/expressions/vararg.kt"); + } + + @Test + @TestMetadata("varargWithImplicitCast.kt") + public void testVarargWithImplicitCast() throws Exception { + runTest("compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCall.kt") + public void testVariableAsFunctionCall() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCall.kt"); + } + + @Test + @TestMetadata("variableAsFunctionCallWithGenerics.kt") + public void testVariableAsFunctionCallWithGenerics() throws Exception { + runTest("compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("compiler/testData/ir/irText/expressions/when.kt"); + } + + @Test + @TestMetadata("whenCoercedToUnit.kt") + public void testWhenCoercedToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenCoercedToUnit.kt"); + } + + @Test + @TestMetadata("whenElse.kt") + public void testWhenElse() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenElse.kt"); + } + + @Test + @TestMetadata("whenReturn.kt") + public void testWhenReturn() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturn.kt"); + } + + @Test + @TestMetadata("whenReturnUnit.kt") + public void testWhenReturnUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenReturnUnit.kt"); + } + + @Test + @TestMetadata("whenSmartCastToEnum.kt") + public void testWhenSmartCastToEnum() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt"); + } + + @Test + @TestMetadata("whenUnusedExpression.kt") + public void testWhenUnusedExpression() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenUnusedExpression.kt"); + } + + @Test + @TestMetadata("whenWithSubjectVariable.kt") + public void testWhenWithSubjectVariable() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whenWithSubjectVariable.kt"); + } + + @Test + @TestMetadata("whileDoWhile.kt") + public void testWhileDoWhile() throws Exception { + runTest("compiler/testData/ir/irText/expressions/whileDoWhile.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/callableReferences") + @TestDataPath("$PROJECT_ROOT") + public class CallableReferences { + @Test + @TestMetadata("adaptedExtensionFunctions.kt") + public void testAdaptedExtensionFunctions() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.kt"); + } + + @Test + @TestMetadata("adaptedWithCoercionToUnit.kt") + public void testAdaptedWithCoercionToUnit() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/adaptedWithCoercionToUnit.kt"); + } + + @Test + public void testAllFilesPresentInCallableReferences() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("boundInlineAdaptedReference.kt") + public void testBoundInlineAdaptedReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.kt"); + } + + @Test + @TestMetadata("boundInnerGenericConstructor.kt") + public void testBoundInnerGenericConstructor() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.kt"); + } + + @Test + @TestMetadata("caoWithAdaptationForSam.kt") + public void testCaoWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt"); + } + + @Test + @TestMetadata("constructorWithAdaptedArguments.kt") + public void testConstructorWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("funWithDefaultParametersAsKCallableStar.kt") + public void testFunWithDefaultParametersAsKCallableStar() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.kt"); + } + + @Test + @TestMetadata("genericLocalClassConstructorReference.kt") + public void testGenericLocalClassConstructorReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.kt"); + } + + @Test + @TestMetadata("genericMember.kt") + public void testGenericMember() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/genericMember.kt"); + } + + @Test + @TestMetadata("importedFromObject.kt") + public void testImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.kt"); + } + + @Test + @TestMetadata("kt37131.kt") + public void testKt37131() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt37131.kt"); + } + + @Test + @TestMetadata("kt46069.kt") + public void testKt46069() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt"); + } + + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.kt"); + } + + @Test + @TestMetadata("typeArguments.kt") + public void testTypeArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/typeArguments.kt"); + } + + @Test + @TestMetadata("unboundMemberReferenceWithAdaptedArguments.kt") + public void testUnboundMemberReferenceWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt"); + } + + @Test + @TestMetadata("varargFunImportedFromObject.kt") + public void testVarargFunImportedFromObject() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.kt"); + } + + @Test + @TestMetadata("withAdaptationForSam.kt") + public void testWithAdaptationForSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt"); + } + + @Test + @TestMetadata("withAdaptedArguments.kt") + public void testWithAdaptedArguments() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt"); + } + + @Test + @TestMetadata("withArgumentAdaptationAndReceiver.kt") + public void testWithArgumentAdaptationAndReceiver() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt"); + } + + @Test + @TestMetadata("withVarargViewedAsArray.kt") + public void testWithVarargViewedAsArray() throws Exception { + runTest("compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons") + @TestDataPath("$PROJECT_ROOT") + public class FloatingPointComparisons { + @Test + public void testAllFilesPresentInFloatingPointComparisons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/floatingPointComparisons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("comparableWithDoubleOrFloat.kt") + public void testComparableWithDoubleOrFloat() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/comparableWithDoubleOrFloat.kt"); + } + + @Test + @TestMetadata("eqeqRhsConditionPossiblyAffectingLhs.kt") + public void testEqeqRhsConditionPossiblyAffectingLhs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/eqeqRhsConditionPossiblyAffectingLhs.kt"); + } + + @Test + @TestMetadata("floatingPointCompareTo.kt") + public void testFloatingPointCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.kt"); + } + + @Test + @TestMetadata("floatingPointEqeq.kt") + public void testFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEqeq.kt"); + } + + @Test + @TestMetadata("floatingPointEquals.kt") + public void testFloatingPointEquals() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.kt"); + } + + @Test + @TestMetadata("floatingPointExcleq.kt") + public void testFloatingPointExcleq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.kt"); + } + + @Test + @TestMetadata("floatingPointLess.kt") + public void testFloatingPointLess() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointLess.kt"); + } + + @Test + @TestMetadata("nullableAnyAsIntToDouble.kt") + public void testNullableAnyAsIntToDouble() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableAnyAsIntToDouble.kt"); + } + + @Test + @TestMetadata("nullableFloatingPointEqeq.kt") + public void testNullableFloatingPointEqeq() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.kt"); + } + + @Test + @TestMetadata("typeParameterWithPrimitiveNumericSupertype.kt") + public void testTypeParameterWithPrimitiveNumericSupertype() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.kt"); + } + + @Test + @TestMetadata("whenByFloatingPoint.kt") + public void testWhenByFloatingPoint() throws Exception { + runTest("compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/funInterface") + @TestDataPath("$PROJECT_ROOT") + public class FunInterface { + @Test + public void testAllFilesPresentInFunInterface() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arrayAsVarargAfterSamArgument_fi.kt") + public void testArrayAsVarargAfterSamArgument_fi() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.kt"); + } + + @Test + @TestMetadata("basicFunInterfaceConversion.kt") + public void testBasicFunInterfaceConversion() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.kt"); + } + + @Test + @TestMetadata("castFromAny.kt") + public void testCastFromAny() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/castFromAny.kt"); + } + + @Test + @TestMetadata("partialSam.kt") + public void testPartialSam() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/partialSam.kt"); + } + + @Test + @TestMetadata("samConversionInVarargs.kt") + public void testSamConversionInVarargs() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.kt"); + } + + @Test + @TestMetadata("samConversionInVarargsMixed.kt") + public void testSamConversionInVarargsMixed() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.kt"); + } + + @Test + @TestMetadata("samConversionOnCallableReference.kt") + public void testSamConversionOnCallableReference() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.kt"); + } + + @Test + @TestMetadata("samConversionsWithSmartCasts.kt") + public void testSamConversionsWithSmartCasts() throws Exception { + runTest("compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/expressions/sam") + @TestDataPath("$PROJECT_ROOT") + public class Sam { + @Test + public void testAllFilesPresentInSam() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/firProblems") + @TestDataPath("$PROJECT_ROOT") + public class FirProblems { + @Test + public void testAllFilesPresentInFirProblems() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/firProblems"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("AnnotationLoader.kt") + public void testAnnotationLoader() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnnotationLoader.kt"); + } + + @Test + @TestMetadata("AnonymousAsReturnOfGenericFunction.kt") + public void testAnonymousAsReturnOfGenericFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.kt"); + } + + @Test + @TestMetadata("ArrayMap.kt") + public void testArrayMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ArrayMap.kt"); + } + + @Test + @TestMetadata("candidateSymbol.kt") + public void testCandidateSymbol() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/candidateSymbol.kt"); + } + + @Test + @TestMetadata("cannotCastToFunction.kt") + public void testCannotCastToFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/cannotCastToFunction.kt"); + } + + @Test + @TestMetadata("DeepCopyIrTree.kt") + public void testDeepCopyIrTree() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt"); + } + + @Test + @TestMetadata("deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/deprecated.kt"); + } + + @Test + @TestMetadata("emptyWhen.kt") + public void testEmptyWhen() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/emptyWhen.kt"); + } + + @Test + @TestMetadata("ErrorInDefaultValue.kt") + public void testErrorInDefaultValue() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.kt"); + } + + @Test + @TestMetadata("Fir2IrClassifierStorage.kt") + public void testFir2IrClassifierStorage() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.kt"); + } + + @Test + @TestMetadata("FirBuilder.kt") + public void testFirBuilder() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/FirBuilder.kt"); + } + + @Test + @TestMetadata("ImplicitReceiverStack.kt") + public void testImplicitReceiverStack() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt"); + } + + @Test + @TestMetadata("inapplicableCollectionSet.kt") + public void testInapplicableCollectionSet() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt"); + } + + @Test + @TestMetadata("InnerClassInAnonymous.kt") + public void testInnerClassInAnonymous() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt"); + } + + @Test + @TestMetadata("integerLiteralWithExpectedTypealiasType.kt") + public void testIntegerLiteralWithExpectedTypealiasType() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/integerLiteralWithExpectedTypealiasType.kt"); + } + + @Test + @TestMetadata("kt43342.kt") + public void testKt43342() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); + } + + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + + @Test + @TestMetadata("lambdaInEnumEntryConstructorCall.kt") + public void testLambdaInEnumEntryConstructorCall() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt"); + } + + @Test + @TestMetadata("localClassUsedBeforeDeclaration.kt") + public void testLocalClassUsedBeforeDeclaration() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.kt"); + } + + @Test + @TestMetadata("localCompanion.kt") + public void testLocalCompanion() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/localCompanion.kt"); + } + + @Test + @TestMetadata("readWriteProperty.kt") + public void testReadWriteProperty() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/readWriteProperty.kt"); + } + + @Test + @TestMetadata("recursiveCapturedTypeInPropertyReference.kt") + public void testRecursiveCapturedTypeInPropertyReference() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt"); + } + + @Test + @TestMetadata("reflectGetOnNullableTypeAlias.kt") + public void testReflectGetOnNullableTypeAlias() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.kt"); + } + + @Test + @TestMetadata("SafeLetWithReturn.kt") + public void testSafeLetWithReturn() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt"); + } + + @Test + @TestMetadata("SignatureClash.kt") + public void testSignatureClash() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SignatureClash.kt"); + } + + @Test + @TestMetadata("SimpleTypeMarker.kt") + public void testSimpleTypeMarker() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt"); + } + + @Test + @TestMetadata("thisInEnumConstructor.kt") + public void testThisInEnumConstructor() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt"); + } + + @Test + @TestMetadata("TypeParameterBounds.kt") + public void testTypeParameterBounds() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/TypeParameterBounds.kt"); + } + + @Test + @TestMetadata("typeVariableAfterBuildMap.kt") + public void testTypeVariableAfterBuildMap() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt"); + } + + @Test + @TestMetadata("VarInInit.kt") + public void testVarInInit() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/VarInInit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js") + @TestDataPath("$PROJECT_ROOT") + public class Js { + @Test + public void testAllFilesPresentInJs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/dynamic") + @TestDataPath("$PROJECT_ROOT") + public class Dynamic { + @Test + public void testAllFilesPresentInDynamic() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dynamicAndMembersOfAny.kt") + public void testDynamicAndMembersOfAny() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt"); + } + + @Test + @TestMetadata("dynamicArrayAccess.kt") + public void testDynamicArrayAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt"); + } + + @Test + @TestMetadata("dynamicArrayAssignment.kt") + public void testDynamicArrayAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayAugmentedAssignment.kt") + public void testDynamicArrayAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicArrayIncrementDecrement.kt") + public void testDynamicArrayIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicBinaryEqualityOperator.kt") + public void testDynamicBinaryEqualityOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryLogicalOperator.kt") + public void testDynamicBinaryLogicalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryOperator.kt") + public void testDynamicBinaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicBinaryRelationalOperator.kt") + public void testDynamicBinaryRelationalOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt"); + } + + @Test + @TestMetadata("dynamicCall.kt") + public void testDynamicCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt"); + } + + @Test + @TestMetadata("dynamicElvisOperator.kt") + public void testDynamicElvisOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt"); + } + + @Test + @TestMetadata("dynamicExclExclOperator.kt") + public void testDynamicExclExclOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt"); + } + + @Test + @TestMetadata("dynamicInfixCall.kt") + public void testDynamicInfixCall() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt"); + } + + @Test + @TestMetadata("dynamicMemberAccess.kt") + public void testDynamicMemberAccess() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt"); + } + + @Test + @TestMetadata("dynamicMemberAssignment.kt") + public void testDynamicMemberAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberAugmentedAssignment.kt") + public void testDynamicMemberAugmentedAssignment() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt"); + } + + @Test + @TestMetadata("dynamicMemberIncrementDecrement.kt") + public void testDynamicMemberIncrementDecrement() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt"); + } + + @Test + @TestMetadata("dynamicUnaryOperator.kt") + public void testDynamicUnaryOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt"); + } + + @Test + @TestMetadata("dynamicWithSmartCast.kt") + public void testDynamicWithSmartCast() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt"); + } + + @Test + @TestMetadata("implicitCastFromDynamic.kt") + public void testImplicitCastFromDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt"); + } + + @Test + @TestMetadata("implicitCastToDynamic.kt") + public void testImplicitCastToDynamic() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt"); + } + + @Test + @TestMetadata("invokeOperator.kt") + public void testInvokeOperator() throws Exception { + runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/external") + @TestDataPath("$PROJECT_ROOT") + public class External { + @Test + public void testAllFilesPresentInExternal() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("kt38765.kt") + public void testKt38765() throws Exception { + runTest("compiler/testData/ir/irText/js/external/kt38765.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/js/native") + @TestDataPath("$PROJECT_ROOT") + public class Native { + @Test + public void testAllFilesPresentInNative() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("nativeNativeKotlin.kt") + public void testNativeNativeKotlin() throws Exception { + runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/lambdas") + @TestDataPath("$PROJECT_ROOT") + public class Lambdas { + @Test + public void testAllFilesPresentInLambdas() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/lambdas"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("anonymousFunction.kt") + public void testAnonymousFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/anonymousFunction.kt"); + } + + @Test + @TestMetadata("destructuringInLambda.kt") + public void testDestructuringInLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/destructuringInLambda.kt"); + } + + @Test + @TestMetadata("extensionLambda.kt") + public void testExtensionLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/extensionLambda.kt"); + } + + @Test + @TestMetadata("justLambda.kt") + public void testJustLambda() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/justLambda.kt"); + } + + @Test + @TestMetadata("lambdaReturningUnit.kt") + public void testLambdaReturningUnit() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/lambdaReturningUnit.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/localFunction.kt"); + } + + @Test + @TestMetadata("multipleImplicitReceivers.kt") + public void testMultipleImplicitReceivers() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt"); + } + + @Test + @TestMetadata("nonLocalReturn.kt") + public void testNonLocalReturn() throws Exception { + runTest("compiler/testData/ir/irText/lambdas/nonLocalReturn.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties") + @TestDataPath("$PROJECT_ROOT") + public class Properties { + @Test + public void testAllFilesPresentInProperties() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/properties/backingField") + @TestDataPath("$PROJECT_ROOT") + public class BackingField { + @Test + public void testAllFilesPresentInBackingField() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/properties/backingField"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("backingFieldVisibility.kt") + public void testBackingFieldVisibility() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt"); + } + + @Test + @TestMetadata("explicitBackingFieldType.kt") + public void testExplicitBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.kt"); + } + + @Test + @TestMetadata("independentBackingFieldType.kt") + public void testIndependentBackingFieldType() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.kt"); + } + + @Test + @TestMetadata("propertyTypeNarrowing.kt") + public void testPropertyTypeNarrowing() throws Exception { + runTest("compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/regressions") + @TestDataPath("$PROJECT_ROOT") + public class Regressions { + @Test + public void testAllFilesPresentInRegressions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/regressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("coercionInLoop.kt") + public void testCoercionInLoop() throws Exception { + runTest("compiler/testData/ir/irText/regressions/coercionInLoop.kt"); + } + + @Test + @TestMetadata("integerCoercionToT.kt") + public void testIntegerCoercionToT() throws Exception { + runTest("compiler/testData/ir/irText/regressions/integerCoercionToT.kt"); + } + + @Test + @TestMetadata("kt24114.kt") + public void testKt24114() throws Exception { + runTest("compiler/testData/ir/irText/regressions/kt24114.kt"); + } + + @Test + @TestMetadata("newInferenceFixationOrder1.kt") + public void testNewInferenceFixationOrder1() throws Exception { + runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt"); + } + + @Test + @TestMetadata("typeAliasCtorForGenericClass.kt") + public void testTypeAliasCtorForGenericClass() throws Exception { + runTest("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/singletons") + @TestDataPath("$PROJECT_ROOT") + public class Singletons { + @Test + public void testAllFilesPresentInSingletons() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/singletons"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() throws Exception { + runTest("compiler/testData/ir/irText/singletons/companion.kt"); + } + + @Test + @TestMetadata("enumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/ir/irText/singletons/enumEntry.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() throws Exception { + runTest("compiler/testData/ir/irText/singletons/object.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/stubs") + @TestDataPath("$PROJECT_ROOT") + public class Stubs { + @Test + public void testAllFilesPresentInStubs() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/stubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("genericClassInDifferentModule.kt") + public void testGenericClassInDifferentModule() throws Exception { + runTest("compiler/testData/ir/irText/stubs/genericClassInDifferentModule.kt"); + } + + @Test + @TestMetadata("kotlinInnerClass.kt") + public void testKotlinInnerClass() throws Exception { + runTest("compiler/testData/ir/irText/stubs/kotlinInnerClass.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/ir/irText/stubs/simple.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + @TestMetadata("abbreviatedTypes.kt") + public void testAbbreviatedTypes() throws Exception { + runTest("compiler/testData/ir/irText/types/abbreviatedTypes.kt"); + } + + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("castsInsideCoroutineInference.kt") + public void testCastsInsideCoroutineInference() throws Exception { + runTest("compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt"); + } + + @Test + @TestMetadata("coercionToUnitInLambdaReturnValue.kt") + public void testCoercionToUnitInLambdaReturnValue() throws Exception { + runTest("compiler/testData/ir/irText/types/coercionToUnitInLambdaReturnValue.kt"); + } + + @Test + @TestMetadata("definitelyNonNull.kt") + public void testDefinitelyNonNull() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNull.kt"); + } + + @Test + @TestMetadata("definitelyNonNullOverride.kt") + public void testDefinitelyNonNullOverride() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullOverride.kt"); + } + + @Test + @TestMetadata("definitelyNonNullSAM.kt") + public void testDefinitelyNonNullSAM() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNonNullSAM.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsArgument.kt") + public void testDefinitelyNotNullAsArgument() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsArgument.kt"); + } + + @Test + @TestMetadata("definitelyNotNullAsReceiver.kt") + public void testDefinitelyNotNullAsReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullAsReceiver.kt"); + } + + @Test + @TestMetadata("definitelyNotNullWithIntersection1.kt") + public void testDefinitelyNotNullWithIntersection1() throws Exception { + runTest("compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.kt"); + } + + @Test + @TestMetadata("dontLeaveStubTypesInSetter.kt") + public void testDontLeaveStubTypesInSetter() throws Exception { + runTest("compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt"); + } + + @Test + @TestMetadata("genericDelegatedDeepProperty.kt") + public void testGenericDelegatedDeepProperty() throws Exception { + runTest("compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt"); + } + + @Test + @TestMetadata("genericFunWithStar.kt") + public void testGenericFunWithStar() throws Exception { + runTest("compiler/testData/ir/irText/types/genericFunWithStar.kt"); + } + + @Test + @TestMetadata("genericPropertyReferenceType.kt") + public void testGenericPropertyReferenceType() throws Exception { + runTest("compiler/testData/ir/irText/types/genericPropertyReferenceType.kt"); + } + + @Test + @TestMetadata("inStarProjectionInReceiverType.kt") + public void testInStarProjectionInReceiverType() throws Exception { + runTest("compiler/testData/ir/irText/types/inStarProjectionInReceiverType.kt"); + } + + @Test + @TestMetadata("intersectionType1.kt") + public void testIntersectionType1() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType1.kt"); + } + + @Test + @TestMetadata("intersectionType2.kt") + public void testIntersectionType2() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType2.kt"); + } + + @Test + @TestMetadata("intersectionType3.kt") + public void testIntersectionType3() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionType3.kt"); + } + + @Test + @TestMetadata("intersectionTypeInSamType.kt") + public void testIntersectionTypeInSamType() throws Exception { + runTest("compiler/testData/ir/irText/types/intersectionTypeInSamType.kt"); + } + + @Test + @TestMetadata("kt36143.kt") + public void testKt36143() throws Exception { + runTest("compiler/testData/ir/irText/types/kt36143.kt"); + } + + @Test + @TestMetadata("kt49526.kt") + public void testKt49526() throws Exception { + runTest("compiler/testData/ir/irText/types/kt49526.kt"); + } + + @Test + @TestMetadata("localVariableOfIntersectionType.kt") + public void testLocalVariableOfIntersectionType() throws Exception { + runTest("compiler/testData/ir/irText/types/localVariableOfIntersectionType.kt"); + } + + @Test + @TestMetadata("smartCastOnFakeOverrideReceiver.kt") + public void testSmartCastOnFakeOverrideReceiver() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.kt"); + } + + @Test + @TestMetadata("smartCastOnReceiverOfGenericType.kt") + public void testSmartCastOnReceiverOfGenericType() throws Exception { + runTest("compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.kt"); + } + + @Test + @TestMetadata("starProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/ir/irText/types/starProjection.kt"); + } + + @Test + @TestMetadata("typeAliasWithUnsafeVariance.kt") + public void testTypeAliasWithUnsafeVariance() throws Exception { + runTest("compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt"); + } + + @Test + @TestMetadata("typeCheckOnDefinitelyNotNull.kt") + public void testTypeCheckOnDefinitelyNotNull() throws Exception { + runTest("compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.kt"); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks") + @TestDataPath("$PROJECT_ROOT") + public class NullChecks { + @Test + public void testAllFilesPresentInNullChecks() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult") + @TestDataPath("$PROJECT_ROOT") + public class NullCheckOnLambdaResult { + @Test + public void testAllFilesPresentInNullCheckOnLambdaResult() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + } + } + } +}