From b57f436a44468e82266e49ef9c2228a662f29198 Mon Sep 17 00:00:00 2001 From: Sergej Jaskiewicz Date: Mon, 13 Mar 2023 16:27:27 +0100 Subject: [PATCH] [test] Mute failing irText tests --- .../ir/irText/classes/classMembers.kt | 4 +- .../testData/ir/irText/classes/classes.kt | 3 ++ compiler/testData/ir/irText/classes/enum.kt | 2 + .../ir/irText/classes/enumClassModality.kt | 2 + .../irText/classes/enumWithMultipleCtors.kt | 2 + .../irText/classes/enumWithSecondaryCtor.kt | 4 +- .../testData/ir/irText/classes/initBlock.kt | 4 +- .../ir/irText/classes/initValInLambda.kt | 2 + .../classes/objectLiteralExpressions.kt | 4 +- .../annotations/classesWithAnnotations.kt | 5 +- .../constExpressionsInAnnotationArguments.kt | 5 +- .../delegateFieldWithAnnotations.kt | 4 +- .../annotations/enumEntriesWithAnnotations.kt | 5 +- .../annotations/enumsInAnnotationArguments.kt | 5 +- ...localDelegatedPropertiesWithAnnotations.kt | 4 +- .../declarations/classLevelProperties.kt | 4 +- .../declarations/constValInitializers.kt | 3 ++ .../declarations/contextReceivers/class.kt | 2 + .../contextualPrimaryConstructorWithParams.kt | 2 + .../declarations/contextReceivers/function.kt | 2 + .../contextReceivers/functionalType.kt | 2 + .../declarations/contextReceivers/lazy.kt | 2 + .../contextReceivers/overloadPriority.kt | 2 + .../contextReceivers/overloading.kt | 2 + .../contextReceivers/plusMatrix.kt | 4 +- .../typeParameterAsContextReceiver.kt | 2 + .../declarations/delegatedProperties.kt | 4 +- .../ir/irText/declarations/kt27005.kt | 5 +- .../ir/irText/declarations/kt47527.kt | 2 + .../ir/irText/declarations/kt52677.kt | 2 + .../declarations/localDelegatedProperties.kt | 4 +- .../multiplatform/expectClassInherited.kt | 2 + .../multiplatform/expectedEnumClass2.kt | 4 +- .../multiplatform/expectedSealedClass.kt | 4 +- .../declarations/packageLevelProperties.kt | 2 + .../ir/irText/errors/unresolvedReference.kt | 4 +- .../expressions/ambiguousFieldAccess.kt | 1 + .../expressions/argumentMappedWithError.kt | 5 +- .../ir/irText/expressions/arrayAssignment.kt | 5 +- .../expressions/arrayAugmentedAssignment1.kt | 5 +- .../ir/irText/expressions/badBreakContinue.kt | 4 +- .../expressions/badInlinedBreakContinue.kt | 4 +- .../irText/expressions/breakContinueInWhen.kt | 2 + .../expressions/callableReferences/kt46069.kt | 2 + .../expressions/catchParameterAccess.kt | 5 +- .../irText/expressions/enumEntryAsReceiver.kt | 5 +- .../enumEntryReferenceFromEnumEntryClass.kt | 5 +- .../expressions/exhaustiveWhenElseBranch.kt | 5 +- .../testData/ir/irText/expressions/for.kt | 4 +- .../expressions/forWithImplicitReceivers.kt | 4 +- .../irText/expressions/incrementDecrement.kt | 4 ++ .../testData/ir/irText/expressions/kt24804.kt | 4 +- .../testData/ir/irText/expressions/kt30020.kt | 4 +- .../testData/ir/irText/expressions/kt30796.kt | 5 +- .../testData/ir/irText/expressions/kt37570.kt | 5 +- .../testData/ir/irText/expressions/kt42321.kt | 1 + .../testData/ir/irText/expressions/kt47328.kt | 1 + .../testData/ir/irText/expressions/kt48708.kt | 2 + .../testData/ir/irText/expressions/kt48806.kt | 2 + .../testData/ir/irText/expressions/kt51036.kt | 2 + .../ir/irText/expressions/objectAsCallable.kt | 5 +- .../signedToUnsignedConversions.kt | 4 +- .../ir/irText/expressions/smartCasts.kt | 4 +- .../temporaryInEnumEntryInitializer.kt | 5 +- .../ir/irText/expressions/tryCatch.kt | 2 + .../expressions/unsignedIntegerLiterals.kt | 2 + .../testData/ir/irText/expressions/values.kt | 5 +- .../expressions/varargWithImplicitCast.kt | 4 +- .../testData/ir/irText/expressions/when.kt | 4 +- .../ir/irText/expressions/whenReturnUnit.kt | 2 + .../irText/expressions/whenSmartCastToEnum.kt | 3 ++ .../irText/firProblems/AbstractMutableMap.kt | 1 + .../irText/firProblems/ArrayListOverrides.kt | 1 + .../ir/irText/firProblems/ArrayMap.kt | 2 + .../ir/irText/firProblems/DeepCopyIrTree.kt | 4 +- .../irText/firProblems/FlushFromAnonymous.kt | 2 + .../firProblems/ImplicitReceiverStack.kt | 2 + .../irText/firProblems/SafeLetWithReturn.kt | 4 +- .../ir/irText/firProblems/SimpleTypeMarker.kt | 2 + .../functionLiteralGenericSignature.kt | 1 + .../firProblems/inapplicableCollectionSet.kt | 2 + .../testData/ir/irText/firProblems/kt43342.kt | 4 +- .../testData/ir/irText/firProblems/kt55458.kt | 2 + .../lambdaInEnumEntryConstructorCall.kt | 4 +- ...ecursiveCapturedTypeInPropertyReference.kt | 2 + ...tFindAnnotationOnDefaultMethodParameter.kt | 2 + .../firProblems/thisInEnumConstructor.kt | 2 + .../firProblems/typeVariableAfterBuildMap.kt | 2 + .../dynamic/dynamicArrayIncrementDecrement.kt | 3 ++ .../dynamicMemberIncrementDecrement.kt | 2 + .../ir/irText/lambdas/anonymousFunction.kt | 4 +- .../ir/irText/lambdas/extensionLambda.kt | 5 +- .../lambdas/multipleImplicitReceivers.kt | 5 +- .../ir/irText/lambdas/nonLocalReturn.kt | 4 +- .../irText/regressions/integerCoercionToT.kt | 3 ++ .../testData/ir/irText/regressions/kt45236.kt | 1 + .../regressions/newInferenceFixationOrder1.kt | 4 +- .../ir/irText/singletons/enumEntry.kt | 5 +- .../testData/ir/irText/stubs/builtinMap.kt | 1 + .../ir/irText/stubs/constFromBuiltins.kt | 2 + .../types/castsInsideCoroutineInference.kt | 2 + .../types/dontLeaveStubTypesInSetter.kt | 2 + compiler/testData/ir/irText/types/kt49526.kt | 2 + .../types/typeAliasWithUnsafeVariance.kt | 1 + .../klib/KlibIrTextTestCaseGenerated.java | 40 ---------------- .../ir/FirLightTreeJsIrTextTestGenerated.java | 48 ++----------------- 106 files changed, 279 insertions(+), 135 deletions(-) diff --git a/compiler/testData/ir/irText/classes/classMembers.kt b/compiler/testData/ir/irText/classes/classMembers.kt index 229fbbb2393..3781be95d42 100644 --- a/compiler/testData/ir/irText/classes/classMembers.kt +++ b/compiler/testData/ir/irText/classes/classMembers.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class C(x: Int, val y: Int, var z: Int = 1) { constructor() : this(0, 0, 0) {} @@ -39,4 +41,4 @@ class C(x: Int, val y: Int, var z: Int = 1) { } companion object -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/classes/classes.kt b/compiler/testData/ir/irText/classes/classes.kt index d53e2610b76..f754d67f167 100644 --- a/compiler/testData/ir/irText/classes/classes.kt +++ b/compiler/testData/ir/irText/classes/classes.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + class TestClass interface TestInterface diff --git a/compiler/testData/ir/irText/classes/enum.kt b/compiler/testData/ir/irText/classes/enum.kt index b8091a8c8fa..33a15bf45a2 100644 --- a/compiler/testData/ir/irText/classes/enum.kt +++ b/compiler/testData/ir/irText/classes/enum.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 7096f0638fd..41db2a8f397 100644 --- a/compiler/testData/ir/irText/classes/enumClassModality.kt +++ b/compiler/testData/ir/irText/classes/enumClassModality.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 d8d225effde..5a3f2b36d99 100644 --- a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt +++ b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 83bad9a373c..a24de8868f3 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 enum class Test0(val x: Int) { ZERO; @@ -23,4 +25,4 @@ enum class Test2(val x: Int) { }; constructor() : this(0) abstract fun foo() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/classes/initBlock.kt b/compiler/testData/ir/irText/classes/initBlock.kt index 7b19ca8f372..b2216c65ca7 100644 --- a/compiler/testData/ir/irText/classes/initBlock.kt +++ b/compiler/testData/ir/irText/classes/initBlock.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class Test1 { init { @@ -43,4 +45,4 @@ class Test5 { println("2") } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/classes/initValInLambda.kt b/compiler/testData/ir/irText/classes/initValInLambda.kt index 36f1dd7c226..2428325566c 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.kt +++ b/compiler/testData/ir/irText/classes/initValInLambda.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class TestInitValInLambdaCalledOnce { val x: Int init { diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt index fb03ffe9814..a22cb523650 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface IFoo { fun foo() @@ -28,4 +30,4 @@ fun Outer.test4() = override fun foo() { println("foo") } - } \ No newline at end of file + } diff --git a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt index b588831f780..78eb0963d7b 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + annotation class TestAnn(val x: String) @TestAnn("class") @@ -18,4 +21,4 @@ class Host { enum class TestEnum @TestAnn("annotation") -annotation class TestAnnotation \ No newline at end of file +annotation class TestAnnotation diff --git a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt index 5154118df01..cb96126792b 100644 --- a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt +++ b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.kt @@ -1,7 +1,10 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + const val ONE = 1 annotation class A(val x: Int) @A(ONE) fun test1() {} -@A(1+1) fun test2() {} \ No newline at end of file +@A(1+1) fun test2() {} diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt index ef11121f305..0bfb1c93044 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.kt @@ -1,7 +1,9 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 annotation class Ann @delegate:Ann -val test1 by lazy { 42 } \ No newline at end of file +val test1 by lazy { 42 } diff --git a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt index 67414e9da2e..89cd342e3b8 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + annotation class TestAnn(val x: String) enum class TestEnum { @@ -5,4 +8,4 @@ enum class TestEnum { @TestAnn("ENTRY2") ENTRY2 { val x = 42 } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt index 15e2c12e605..a44be273e11 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.kt @@ -1,6 +1,9 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class En { A, B, C, D } annotation class TestAnn(val x: En) @TestAnn(En.A) -fun test1() {} \ No newline at end of file +fun test1() {} diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt index 1470a1d41f6..0156cf3c55c 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.kt @@ -1,8 +1,10 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 annotation class A(val x: String) fun foo(m: Map) { @A("foo/test") val test by lazy { 42 } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.kt b/compiler/testData/ir/irText/declarations/classLevelProperties.kt index 5a68e2d43ad..e7e09c07ebf 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.kt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class C { val test1 = 0 @@ -18,4 +20,4 @@ class C { val test7 by lazy { 42 } var test8 by hashMapOf() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/constValInitializers.kt b/compiler/testData/ir/irText/declarations/constValInitializers.kt index 605f1730cd0..0876f95bb1b 100644 --- a/compiler/testData/ir/irText/declarations/constValInitializers.kt +++ b/compiler/testData/ir/irText/declarations/constValInitializers.kt @@ -1,4 +1,7 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + const val I0 = 0 const val I1 = 1 const val I2 = I0 + I1 + I1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt index 0a89feedd9a..ae97e17f093 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class Outer { val x: Int = 1 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt index 2bd75795632..040722f8f7b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 c47f2ff99ee..33ebb022b98 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 06ffff7c30c..198359b89bb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.kt @@ -1,4 +1,6 @@ // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class Param class C { diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt index 2e92fc8310f..c1b6118f103 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 9dd98b72e55..59e2f4116bd 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 e63fdc58cc3..b42c2c698cd 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 a38ef0300e0..e5966b53400 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt @@ -1,6 +1,8 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // !DIAGNOSTICS: -UNUSED_PARAMETER +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface NumberOperations { fun Number.plus(other: Number): Number @@ -13,4 +15,4 @@ context(NumberOperations) fun Matrix.plus(other: Matrix): Matrix = TODO() fun NumberOperations.plusMatrix(m1: Matrix, m2: Matrix) { m1.plus(m2) m2.plus(m1) -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt index 9e903898511..d44d68a64f5 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 ec6c0b6ca9a..012a500656d 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.kt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 val test1 by lazy { 42 } @@ -7,4 +9,4 @@ class C(val map: MutableMap) { var test3 by map } -var test4 by hashMapOf() \ No newline at end of file +var test4 by hashMapOf() diff --git a/compiler/testData/ir/irText/declarations/kt27005.kt b/compiler/testData/ir/irText/declarations/kt27005.kt index 59c7351527e..ed083c8369f 100644 --- a/compiler/testData/ir/irText/declarations/kt27005.kt +++ b/compiler/testData/ir/irText/declarations/kt27005.kt @@ -1,6 +1,9 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + suspend fun foo() = baz() suspend fun bar() = baz() suspend fun baz(): T { TODO() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/kt47527.kt b/compiler/testData/ir/irText/declarations/kt47527.kt index 24f129ddec9..05cdfee444d 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.kt +++ b/compiler/testData/ir/irText/declarations/kt47527.kt @@ -1,5 +1,7 @@ // ISSUE: KT-47527 // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 8977947a1f3..f4f9c8d9b04 100644 --- a/compiler/testData/ir/irText/declarations/kt52677.kt +++ b/compiler/testData/ir/irText/declarations/kt52677.kt @@ -1,4 +1,6 @@ // ISSUE: KT-52677 +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 49ace585a93..6c0c45b6d19 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun test1() { val x by lazy { 42 } @@ -10,4 +12,4 @@ fun test2() { x = 0 x++ x += 1 -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt index a5af6231876..7b665d7aaca 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.kt @@ -1,4 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects expect abstract class A protected constructor() { diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt index 02417b3cb6a..79f04dddd05 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.kt @@ -1,6 +1,8 @@ // FIR_IDENTICAL // !LANGUAGE: +MultiPlatformProjects // IGNORE_BACKEND_K1: ANY +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // MODULE: lib // FILE: lib.kt @@ -15,4 +17,4 @@ actual enum class MyEnum { FOO, BAR, BAZ -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt index 7eaf87dd8e5..4091adc2440 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.kt @@ -1,8 +1,10 @@ // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !LANGUAGE: +MultiPlatformProjects expect sealed class Ops() expect class Add() : Ops actual sealed class Ops actual constructor() -actual class Add actual constructor() : Ops() \ No newline at end of file +actual class Add actual constructor() : Ops() diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.kt b/compiler/testData/ir/irText/declarations/packageLevelProperties.kt index f2eff763544..f79caf5183f 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.kt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 val test1 = 0 diff --git a/compiler/testData/ir/irText/errors/unresolvedReference.kt b/compiler/testData/ir/irText/errors/unresolvedReference.kt index e18dcfe9b9a..f363a1414f0 100644 --- a/compiler/testData/ir/irText/errors/unresolvedReference.kt +++ b/compiler/testData/ir/irText/errors/unresolvedReference.kt @@ -1,4 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !IGNORE_ERRORS val test1 = unresolved @@ -8,4 +10,4 @@ val test2: Unresolved = val test3 = 42.unresolved(56) -val test4 = 42 * \ No newline at end of file +val test4 = 42 * diff --git a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt index 82445744ee4..67091bde2cc 100644 --- a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt +++ b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JVM_IR // SKIP_KLIB_TEST // Related to KT-49507 // FILE: A.java diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt index 0ef96e066e7..0dee75760c1 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.kt @@ -1,4 +1,7 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun Number.convert(): R = TODO() fun foo(arg: Number) { @@ -7,4 +10,4 @@ fun foo(arg: Number) { fun main(args: Array) { val x: Int = 0 foo(x.convert()) -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.kt b/compiler/testData/ir/irText/expressions/arrayAssignment.kt index 26fec9c8b2b..008597d919c 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.kt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun test() { val x = intArrayOf(1, 2, 3) x[1] = 0 @@ -7,4 +10,4 @@ fun foo() = 1 fun test2() { intArrayOf(1, 2, 3)[foo()] = 1 -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt index 503bc5554d6..0cf32ac3980 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun foo(): IntArray = intArrayOf(1, 2, 3) fun bar() = 42 @@ -14,4 +17,4 @@ fun testCall() { fun testMember(c: C) { c.x[0]++ -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/badBreakContinue.kt b/compiler/testData/ir/irText/expressions/badBreakContinue.kt index 9044899bb8c..bc176626ae2 100644 --- a/compiler/testData/ir/irText/expressions/badBreakContinue.kt +++ b/compiler/testData/ir/irText/expressions/badBreakContinue.kt @@ -1,4 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !IGNORE_ERRORS fun test1() { @@ -25,4 +27,4 @@ fun test3() { fun test4() { while (break) {} while (continue) {} -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt index b5dde8d52fe..0a5de35b758 100644 --- a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt +++ b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.kt @@ -1,5 +1,7 @@ // LANGUAGE: +BreakContinueInInlineLambdas // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !IGNORE_ERRORS // WITH_STDLIB @@ -115,4 +117,4 @@ fun test8() { while (true) { baz({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 add8594d562..b481024b3b6 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.kt @@ -1,4 +1,6 @@ // !LANGUAGE: +AllowBreakAndContinueInsideWhen +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 c10c36f0f4b..46923f94e40 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.kt @@ -1,4 +1,6 @@ // SKIP_KT_DUMP +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 2c327d21acd..f57ef20c307 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.kt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.kt @@ -1,2 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun test(f: () -> Unit) = - try { f() } catch (e: Exception) { throw e } \ No newline at end of file + 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 096316ed24b..853a7550631 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class X { B { @@ -10,4 +13,4 @@ enum class X { fun box(): String { return X.B.value() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt index 95636298feb..cbdb93e279c 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt +++ b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class MyEnum { Z { var counter = 0 @@ -25,4 +28,4 @@ enum class MyEnum { } } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt index 91193189fcb..b43513883bc 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class A { V1 } fun testVariableAssignment_throws(a: A) { @@ -76,4 +79,4 @@ fun testLambdaResultExpression_throws(a: A) { // else -> throw } }() -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/for.kt b/compiler/testData/ir/irText/expressions/for.kt index a6f9df55f74..658473e19ee 100644 --- a/compiler/testData/ir/irText/expressions/for.kt +++ b/compiler/testData/ir/irText/expressions/for.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun testEmpty(ss: List) { for (s in ss); @@ -19,4 +21,4 @@ fun testDestructuring(pp: List>) { fun testRange() { for (i in 1..10); -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt index fc76bd717b6..6dbfc40508d 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 object FiveTimes @@ -14,4 +16,4 @@ fun IReceiver.test() { for (i in FiveTimes) { println(i) } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.kt b/compiler/testData/ir/irText/expressions/incrementDecrement.kt index ff28e2ac213..f9fc692146c 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.kt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + var p: Int = 0 val arr = intArrayOf(1, 2, 3) @@ -45,6 +48,7 @@ fun testArrayPostfix() { val a2 = arr[0]-- } + fun testClassPropPrefix() { val p1 = ++C().p val p2 = --C().p diff --git a/compiler/testData/ir/irText/expressions/kt24804.kt b/compiler/testData/ir/irText/expressions/kt24804.kt index ec73e2b06e6..68860d98b6e 100644 --- a/compiler/testData/ir/irText/expressions/kt24804.kt +++ b/compiler/testData/ir/irText/expressions/kt24804.kt @@ -1,4 +1,6 @@ // IGNORE_BACKEND_K2: JVM_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 inline fun foo() = false fun run(x: Boolean, y: Boolean): String { @@ -15,4 +17,4 @@ fun run(x: Boolean, y: Boolean): String { fun box(): String { return run(true, true) -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/kt30020.kt b/compiler/testData/ir/irText/expressions/kt30020.kt index 00c54791115..4ea2b7539ad 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.kt +++ b/compiler/testData/ir/irText/expressions/kt30020.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface X { val xs: MutableList @@ -28,4 +30,4 @@ abstract class AML : MutableList { this@AML += 300 } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/kt30796.kt b/compiler/testData/ir/irText/expressions/kt30796.kt index 9340f19663c..230b280bdff 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.kt +++ b/compiler/testData/ir/irText/expressions/kt30796.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun magic(): T = throw Exception() fun test(value: T, value2: T) { @@ -8,4 +11,4 @@ fun test(value: T, value2: T) { val x5: Any = magic() ?: 42 val x6: Any = value ?: magic() ?: 42 val x7: Any = magic() ?: value ?: 42 -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/kt37570.kt b/compiler/testData/ir/irText/expressions/kt37570.kt index d385075668b..c5435a82164 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.kt +++ b/compiler/testData/ir/irText/expressions/kt37570.kt @@ -1,4 +1,7 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun a() = "string" class A { @@ -8,4 +11,4 @@ class A { b = this } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/kt42321.kt b/compiler/testData/ir/irText/expressions/kt42321.kt index 1ab9f0b6d6e..6f8aa9f33d4 100644 --- a/compiler/testData/ir/irText/expressions/kt42321.kt +++ b/compiler/testData/ir/irText/expressions/kt42321.kt @@ -1,3 +1,4 @@ +// TARGET_BACKEND: JVM_IR // IGNORE_BACKEND_K2: JVM_IR // FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design // SKIP_KT_DUMP diff --git a/compiler/testData/ir/irText/expressions/kt47328.kt b/compiler/testData/ir/irText/expressions/kt47328.kt index 017c5a5d6e4..34044a8242e 100644 --- a/compiler/testData/ir/irText/expressions/kt47328.kt +++ b/compiler/testData/ir/irText/expressions/kt47328.kt @@ -3,6 +3,7 @@ // !LANGUAGE: -ProhibitJvmFieldOnOverrideFromInterfaceInPrimaryConstructor // SKIP_KT_DUMP // SKIP_KLIB_TEST +// TARGET_BACKEND: JVM_IR // WITH_STDLIB interface A { val x: Int } diff --git a/compiler/testData/ir/irText/expressions/kt48708.kt b/compiler/testData/ir/irText/expressions/kt48708.kt index 5bc3d1b313e..f4c58489be4 100644 --- a/compiler/testData/ir/irText/expressions/kt48708.kt +++ b/compiler/testData/ir/irText/expressions/kt48708.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 8f692871529..04774cdd98b 100644 --- a/compiler/testData/ir/irText/expressions/kt48806.kt +++ b/compiler/testData/ir/irText/expressions/kt48806.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 12467081bf6..8765745e5fd 100644 --- a/compiler/testData/ir/irText/expressions/kt51036.kt +++ b/compiler/testData/ir/irText/expressions/kt51036.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 59b940d54a0..9f25efcfe35 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.kt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + object A enum class En { X } @@ -6,4 +9,4 @@ operator fun A.invoke(i: Int) = i operator fun En.invoke(i: Int) = i val test1 = A(42) -val test2 = En.X(42) \ No newline at end of file +val test2 = En.X(42) diff --git a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt index f61567d4907..c4ab30c0720 100644 --- a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt +++ b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion // FILE: signedToUnsignedConversions_annotation.kt @@ -53,4 +55,4 @@ fun test() { // such kind of conversions (Int <-> Long) actually are not supported // takeLong(IMPLICIT_INT) -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/smartCasts.kt b/compiler/testData/ir/irText/expressions/smartCasts.kt index 3d37d314442..4ea76eaa789 100644 --- a/compiler/testData/ir/irText/expressions/smartCasts.kt +++ b/compiler/testData/ir/irText/expressions/smartCasts.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun expectsString(s: String) {} fun expectsInt(i: Int) {} @@ -23,4 +25,4 @@ fun test2(x: Any): String { fun test3(x: Any): String { if (x !is String) return "" return x -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt index fa7a3f687c6..097dc50e915 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt +++ b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.kt @@ -1,5 +1,8 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + val n: Any? = null enum class En(val x: String?) { ENTRY(n?.toString()) -} \ 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 310e1be6e50..c2d814a2a8f 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.kt +++ b/compiler/testData/ir/irText/expressions/tryCatch.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 4c31aadf17d..beff2c1b347 100644 --- a/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt +++ b/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 949b7b1d277..212382d6a75 100644 --- a/compiler/testData/ir/irText/expressions/values.kt +++ b/compiler/testData/ir/irText/expressions/values.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class Enum { A } object A val a = 0 @@ -8,4 +11,4 @@ class Z { fun test1() = Enum.A fun test2() = A fun test3() = a -fun test4() = Z \ No newline at end of file +fun test4() = Z diff --git a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt index e2ac9381d3f..5fe972f8cd6 100644 --- a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt +++ b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun testScalar(a: Any): IntArray { if (a !is Int) return intArrayOf() @@ -8,4 +10,4 @@ fun testScalar(a: Any): IntArray { fun testSpread(a: Any): IntArray { if (a !is IntArray) return intArrayOf() return intArrayOf(*a) -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/when.kt b/compiler/testData/ir/irText/expressions/when.kt index a7115470ad1..a330854ae67 100644 --- a/compiler/testData/ir/irText/expressions/when.kt +++ b/compiler/testData/ir/irText/expressions/when.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 object A @@ -28,4 +30,4 @@ fun testComma(x: Int) = 5, 6, 7 -> "567" 8, 9 -> "89" else -> "?" - } \ No newline at end of file + } diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt index 2e29a3849fe..6b3c25d14e5 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 f6f7c3ad1a2..b85c4d4741e 100644 --- a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt +++ b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class En { A, B, C } fun test() { diff --git a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt index 9ac892625ea..dc89cacbad3 100644 --- a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt +++ b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt @@ -1,6 +1,7 @@ // WITH_STDLIB // FULL_JDK // JVM_TARGET: 1.8 +// TARGET_BACKEND: JVM_IR class MyMap : AbstractMutableMap() { override fun put(key: K, value: V): V? = null diff --git a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt index 83fe0a0f488..beea1023d53 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt +++ b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt @@ -1,5 +1,6 @@ // FULL_JDK // SKIP_KLIB_TEST +// TARGET_BACKEND: JVM_IR class A1 : java.util.ArrayList() diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.kt b/compiler/testData/ir/irText/firProblems/ArrayMap.kt index 6ce31262e41..93349ba9f21 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.kt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 70401d59d42..22750ea1c63 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // FULL_JDK +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface IrType @@ -42,4 +44,4 @@ inline fun TypeRemapper.withinScope(irTypeParametersContainer: IrTypeParamet val result = fn() leaveScope() return result -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt index f9a585d0a00..8fa57adb97a 100644 --- a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt +++ b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt @@ -1,4 +1,6 @@ // 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 4d6e70caf68..061df64890c 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt @@ -1,6 +1,8 @@ // WITH_STDLIB // FULL_JDK // JVM_TARGET: 1.8 +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface SymbolOwner> diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt index 74a1d777cc3..d9b3a23ee72 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun foo(s: String?): String { s?.let { it -> @@ -22,4 +24,4 @@ val String?.baz: String return it } return "" - } \ No newline at end of file + } diff --git a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt index 7eceda2ad85..7ea7e836678 100644 --- a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt +++ b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface SimpleTypeMarker diff --git a/compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt b/compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt index ce547226c41..59e8cb47984 100644 --- a/compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt +++ b/compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt @@ -1,5 +1,6 @@ // SKIP_KLIB_TEST // FIR_IDENTICAL +// TARGET_BACKEND: JVM_IR import java.util.Date val unitFun = { } diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt index 04369e7cf0d..ffb0aaa0f29 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // FULL_JDK +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class Flaf(val javaName: String) { diff --git a/compiler/testData/ir/irText/firProblems/kt43342.kt b/compiler/testData/ir/irText/firProblems/kt43342.kt index b1c24615c36..2ddee9d703e 100644 --- a/compiler/testData/ir/irText/firProblems/kt43342.kt +++ b/compiler/testData/ir/irText/firProblems/kt43342.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 open class ControlFlowInfo(val map: Map): Map by map @@ -7,4 +9,4 @@ class StringFlowInfo(map: Map): ControlFlowInfo( keys info.keys } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt b/compiler/testData/ir/irText/firProblems/kt55458.kt index 9553345bf80..5bbcc121bb8 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.kt +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 be7ebf3e5bd..03d9baf6be5 100644 --- a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt +++ b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // KT-50774 class Wrapper(var baseUrl: String) @@ -11,4 +13,4 @@ enum class ConfigurationParameter { ); constructor(apply: (String, Wrapper) -> Unit) {} -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt index 27fc49de69c..7962b1dc252 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // FULL_JDK +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 interface Something diff --git a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt index 1f44337bffa..1eb7484b5ca 100644 --- a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt +++ b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.kt @@ -1,4 +1,6 @@ // SKIP_KLIB_TEST +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // WITH_REFLECT // FULL_JDK diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt index 84cac19ce8d..aafd5961885 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 49f9c153fc4..e9a40f5d8c0 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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/dynamicArrayIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt index 9af7bab998a..5f46f61096e 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt @@ -1,6 +1,9 @@ // TARGET_BACKEND: JS_IR // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + fun testArrayIncrementDecrement(d: dynamic) { val t1 = ++d["prefixIncr"] val t2 = --d["prefixDecr"] diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt index 50b07b81f5c..3aebee1936c 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt @@ -1,4 +1,6 @@ // TARGET_BACKEND: JS_IR +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 // FIR_IDENTICAL diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt index 7794b2d1997..a487b457c69 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 -val anonymous = fun() { println() } \ No newline at end of file +val anonymous = fun() { println() } diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.kt b/compiler/testData/ir/irText/lambdas/extensionLambda.kt index 724fb7da3f9..5e6114fd920 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.kt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.kt @@ -1,2 +1,5 @@ // FIR_IDENTICAL -fun test1() = "42".run { length } \ No newline at end of file +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 1e86fffb2d4..c56f635e717 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + object A object B @@ -17,4 +20,4 @@ fun test(fooImpl: IFoo, invokeImpl: IInvoke) { } } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt index 05929f5cf5f..d0a63df8848 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun test0() { run { @@ -41,4 +43,4 @@ fun testLrmFoo2(ints: List) { if (it == 0) return@forEach print(it) } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt index 5603b4dfb3a..65a8725370d 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.kt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + interface CPointed inline fun CPointed.reinterpret(): T = TODO() diff --git a/compiler/testData/ir/irText/regressions/kt45236.kt b/compiler/testData/ir/irText/regressions/kt45236.kt index fe9b47b89da..d9f7b23e1e8 100644 --- a/compiler/testData/ir/irText/regressions/kt45236.kt +++ b/compiler/testData/ir/irText/regressions/kt45236.kt @@ -1,5 +1,6 @@ // WITH_STDLIB // SKIP_KT_DUMP +// TARGET_BACKEND: JVM_IR import kotlin.contracts.ExperimentalContracts import kotlin.contracts.contract diff --git a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt index 26a7ec331c6..47d408062af 100644 --- a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt +++ b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt @@ -1,4 +1,6 @@ // FIR_IDENTICAL +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun foo(): (X) -> Y = TODO() interface Inv2 @@ -11,4 +13,4 @@ fun box(): String { val x: Inv2 = test() return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/singletons/enumEntry.kt b/compiler/testData/ir/irText/singletons/enumEntry.kt index b79d0cd9615..6a6aea656f1 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.kt +++ b/compiler/testData/ir/irText/singletons/enumEntry.kt @@ -1,3 +1,6 @@ +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 + enum class Z { ENTRY { fun test() {} @@ -8,4 +11,4 @@ enum class Z { } } } -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/stubs/builtinMap.kt b/compiler/testData/ir/irText/stubs/builtinMap.kt index 7a64458ccfd..cf691676eab 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.kt +++ b/compiler/testData/ir/irText/stubs/builtinMap.kt @@ -1,5 +1,6 @@ // WITH_STDLIB // FULL_JDK +// TARGET_BACKEND: JVM_IR fun Map.plus(pair: Pair): Map = if (this.isEmpty()) mapOf(pair) else LinkedHashMap(this).apply { put(pair.first, pair.second) } diff --git a/compiler/testData/ir/irText/stubs/constFromBuiltins.kt b/compiler/testData/ir/irText/stubs/constFromBuiltins.kt index 65992c7f993..0e31ceff5aa 100644 --- a/compiler/testData/ir/irText/stubs/constFromBuiltins.kt +++ b/compiler/testData/ir/irText/stubs/constFromBuiltins.kt @@ -1,3 +1,5 @@ // DUMP_EXTERNAL_CLASS: kotlin/Int +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 val test = Int.MIN_VALUE diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt index 15571b77e17..60d896f0df1 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.kt @@ -1,4 +1,6 @@ // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: 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 7b2d5769d77..291c7cb2419 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.kt @@ -1,5 +1,7 @@ // FIR_IDENTICAL // WITH_STDLIB +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 class Foo(var x: T) diff --git a/compiler/testData/ir/irText/types/kt49526.kt b/compiler/testData/ir/irText/types/kt49526.kt index 6524a106778..7687a5d2d12 100644 --- a/compiler/testData/ir/irText/types/kt49526.kt +++ b/compiler/testData/ir/irText/types/kt49526.kt @@ -1,5 +1,7 @@ // WITH_STDLIB // SKIP_KT_DUMP +// IGNORE_BACKEND_K2: JS_IR +// IGNORE_BACKEND_K2: JS_IR_ES6 fun test(): Boolean { val ref = (listOf('a') + "-")::contains diff --git a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt index bd2aff5ff6d..d7c7b42ccf7 100644 --- a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt +++ b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt @@ -1,4 +1,5 @@ // KT-42036 +// IGNORE_BACKEND: JS_IR typealias Action = (@UnsafeVariance RenderingT) -> Unit diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java index b2b8235408d..d9294e60fd7 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java @@ -900,11 +900,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @TestMetadata("ambiguousFieldAccess.kt") - public void testAmbiguousFieldAccess() throws Exception { - runTest("compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt"); - } - @TestMetadata("argumentMappedWithError.kt") public void testArgumentMappedWithError() throws Exception { runTest("compiler/testData/ir/irText/expressions/argumentMappedWithError.kt"); @@ -1265,11 +1260,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/expressions/kt37779.kt"); } - @TestMetadata("kt42321.kt") - public void testKt42321() throws Exception { - runTest("compiler/testData/ir/irText/expressions/kt42321.kt"); - } - @TestMetadata("kt45022.kt") public void testKt45022() throws Exception { runTest("compiler/testData/ir/irText/expressions/kt45022.kt"); @@ -1280,11 +1270,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/expressions/kt47245.kt"); } - @TestMetadata("kt47328.kt") - public void testKt47328() throws Exception { - runTest("compiler/testData/ir/irText/expressions/kt47328.kt"); - } - @TestMetadata("kt47450.kt") public void testKt47450() throws Exception { runTest("compiler/testData/ir/irText/expressions/kt47450.kt"); @@ -1871,11 +1856,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { KotlinTestUtils.runTest(this::doTest, TargetBackend.JS_IR, testDataFilePath); } - @TestMetadata("AbstractMutableMap.kt") - public void testAbstractMutableMap() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt"); - } - public void testAllFilesPresentInFirProblems() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/firProblems"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } @@ -1890,11 +1870,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.kt"); } - @TestMetadata("ArrayListOverrides.kt") - public void testArrayListOverrides() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt"); - } - @TestMetadata("ArrayMap.kt") public void testArrayMap() throws Exception { runTest("compiler/testData/ir/irText/firProblems/ArrayMap.kt"); @@ -1945,11 +1920,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt"); } - @TestMetadata("functionLiteralGenericSignature.kt") - public void testFunctionLiteralGenericSignature() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt"); - } - @TestMetadata("ImplicitReceiverStack.kt") public void testImplicitReceiverStack() throws Exception { runTest("compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.kt"); @@ -2349,11 +2319,6 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/regressions/kt24114.kt"); } - @TestMetadata("kt45236.kt") - public void testKt45236() throws Exception { - runTest("compiler/testData/ir/irText/regressions/kt45236.kt"); - } - @TestMetadata("newInferenceFixationOrder1.kt") public void testNewInferenceFixationOrder1() throws Exception { runTest("compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.kt"); @@ -2405,11 +2370,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("builtinMap.kt") - public void testBuiltinMap() throws Exception { - runTest("compiler/testData/ir/irText/stubs/builtinMap.kt"); - } - @TestMetadata("constFromBuiltins.kt") public void testConstFromBuiltins() throws Exception { runTest("compiler/testData/ir/irText/stubs/constFromBuiltins.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java index 7ff579bcf36..4630976152b 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirLightTreeJsIrTextTestGenerated.java @@ -1002,12 +1002,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Test - @TestMetadata("ambiguousFieldAccess.kt") - public void testAmbiguousFieldAccess() throws Exception { - runTest("compiler/testData/ir/irText/expressions/ambiguousFieldAccess.kt"); - } - @Test @TestMetadata("argumentMappedWithError.kt") public void testArgumentMappedWithError() throws Exception { @@ -1440,12 +1434,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/expressions/kt37779.kt"); } - @Test - @TestMetadata("kt42321.kt") - public void testKt42321() throws Exception { - runTest("compiler/testData/ir/irText/expressions/kt42321.kt"); - } - @Test @TestMetadata("kt45022.kt") public void testKt45022() throws Exception { @@ -1458,12 +1446,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/expressions/kt47245.kt"); } - @Test - @TestMetadata("kt47328.kt") - public void testKt47328() throws Exception { - runTest("compiler/testData/ir/irText/expressions/kt47328.kt"); - } - @Test @TestMetadata("kt47450.kt") public void testKt47450() throws Exception { @@ -2139,12 +2121,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT @TestMetadata("compiler/testData/ir/irText/firProblems") @TestDataPath("$PROJECT_ROOT") public class FirProblems { - @Test - @TestMetadata("AbstractMutableMap.kt") - public void testAbstractMutableMap() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/AbstractMutableMap.kt"); - } - @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); @@ -2157,9 +2133,9 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT } @Test - @TestMetadata("ArrayListOverrides.kt") - public void testArrayListOverrides() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/ArrayListOverrides.kt"); + @TestMetadata("AnonymousAsReturnOfGenericFunction.kt") + public void testAnonymousAsReturnOfGenericFunction() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.kt"); } @Test @@ -2222,12 +2198,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/firProblems/FlushFromAnonymous.kt"); } - @Test - @TestMetadata("functionLiteralGenericSignature.kt") - public void testFunctionLiteralGenericSignature() throws Exception { - runTest("compiler/testData/ir/irText/firProblems/functionLiteralGenericSignature.kt"); - } - @Test @TestMetadata("ImplicitReceiverStack.kt") public void testImplicitReceiverStack() throws Exception { @@ -2662,12 +2632,6 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/regressions/kt24114.kt"); } - @Test - @TestMetadata("kt45236.kt") - public void testKt45236() throws Exception { - runTest("compiler/testData/ir/irText/regressions/kt45236.kt"); - } - @Test @TestMetadata("newInferenceFixationOrder1.kt") public void testNewInferenceFixationOrder1() throws Exception { @@ -2718,12 +2682,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("builtinMap.kt") - public void testBuiltinMap() throws Exception { - runTest("compiler/testData/ir/irText/stubs/builtinMap.kt"); - } - @Test @TestMetadata("constFromBuiltins.kt") public void testConstFromBuiltins() throws Exception {