From 973adb6a38df87d16ee089eee7faafa1983fd76a Mon Sep 17 00:00:00 2001 From: Sergej Jaskiewicz Date: Tue, 11 Apr 2023 17:46:04 +0200 Subject: [PATCH] [test] Remove TARGET_BACKEND: JVM_IR for non JVM-specific irText tests If they fail on other backends, use the IGNORE_BACKEND directive instead --- .../arrayAccessCompositeOperators.kt | 2 +- .../contextReceivers/arrayAccessOperators.kt | 2 +- .../compoundAssignmentOperators.kt | 2 +- .../contextualFunctionConversion.kt | 1 - .../contextualFunctionConversion.sig.kt.txt | 9 ++ .../contextReceivers/contextualInlineCall.kt | 2 +- .../delegatedPropertiesOperators.kt | 2 +- .../contextReceivers/fromKEEP/canvas.kt | 2 +- .../contextReceivers/fromKEEP/compareTo.kt | 2 +- .../contextReceivers/fromKEEP/dp.kt | 2 +- .../fromKEEP/functionalType.kt | 2 +- .../contextReceivers/fromKEEP/monoidSum.kt | 2 +- .../contextReceivers/iteratorOperator.kt | 2 +- .../declarations/contextReceivers/kt52791.kt | 2 +- .../passingLambdaToContextualParam.kt | 1 - .../passingLambdaToContextualParam.sig.kt.txt | 9 ++ .../contextReceivers/unaryOperators.kt | 2 +- .../klib/KlibIrTextTestCaseGenerated.java | 75 ++++++++++++++++ .../FirLightTreeJsIrTextTestGenerated.java | 90 +++++++++++++++++++ .../test/fir/FirPsiJsIrTextTestGenerated.java | 90 +++++++++++++++++++ .../test/ir/ClassicJsIrTextTestGenerated.java | 90 +++++++++++++++++++ 21 files changed, 376 insertions(+), 15 deletions(-) diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt index 1e237a802ad..aea5e1fe3e6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt index f40f4bcb855..a885fcbd38f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt index 75ff39ae126..2df5c376ae0 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt index ebde7e4619d..1fb71070032 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR fun withContext(f: context(String) () -> String) = f("OK") diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.sig.kt.txt index 5badf178745..8259d80f387 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.sig.kt.txt @@ -1,15 +1,24 @@ // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #callWithContext(kotlin.Function1){}kotlin.String // Public signature: /callWithContext|2869415620415030876[0] +// CHECK JS_IR NATIVE: +// Mangled name: #callWithContext(kotlin.Function1){} +// Public signature: /callWithContext|-2175578939070447459[0] fun callWithContext(f: Function1): String // CHECK JVM_IR: // Mangled name: #withContext(kotlin.Function1){}kotlin.String // Public signature: /withContext|-1533357735492795771[0] +// CHECK JS_IR NATIVE: +// Mangled name: #withContext(kotlin.Function1){} +// Public signature: /withContext|3644059802172459381[0] fun withContext(f: Function1): String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt index 458f70d4f51..d6710d39a2a 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt index 563923c6c91..b4856a0584e 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // WITH_STDLIB // MUTE_SIGNATURE_COMPARISON_K2: ANY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt index fd1c3fa1f70..a902927ee46 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt @@ -1,6 +1,6 @@ // FIR_IDENTICAL // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt index b0069b44773..85dd7e78f05 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57429, KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt index 04d8daebc0a..cda26abd62c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // WITH_STDLIB // MUTE_SIGNATURE_COMPARISON_K2: ANY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt index 9758fdce6c5..ae7b919df53 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt index 229f18fe829..7ef18b0a228 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // WITH_STDLIB // MUTE_SIGNATURE_COMPARISON_K2: ANY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt index f0f27173010..71e8471c0b6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // WITH_STDLIB // MUTE_SIGNATURE_COMPARISON_K2: ANY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt b/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt index 6d600ea2e57..c8429231bc3 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +ContextReceivers // FIR_IDENTICAL -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt index b05b8ff87ac..a7ae2d35848 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR class C { val result = "OK" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.sig.kt.txt b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.sig.kt.txt index cbc5890bf5c..16c542205c1 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.sig.kt.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.sig.kt.txt @@ -9,6 +9,9 @@ class C { // CHECK JVM_IR: // Mangled name: C#(){}kotlin.String // Public signature: /C.result.|8441547134620975366[0] + // CHECK JS_IR NATIVE: + // Mangled name: C#(){} + // Public signature: /C.result.|7945192536455394063[0] get // CHECK: @@ -21,10 +24,16 @@ class C { // CHECK JVM_IR: // Mangled name: #box(){}kotlin.String // Public signature: /box|-9347091776561469[0] +// CHECK JS_IR NATIVE: +// Mangled name: #box(){} +// Public signature: /box|2173511048851971368[0] fun box(): String // CHECK JVM_IR: // Mangled name: #contextual(kotlin.Function1){}kotlin.String // Public signature: /contextual|-248785556334643583[0] +// CHECK JS_IR NATIVE: +// Mangled name: #contextual(kotlin.Function1){} +// Public signature: /contextual|-8388542031730591420[0] fun contextual(f: Function1): String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt index fd4e4ffbc11..91469fac021 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt @@ -1,5 +1,5 @@ // !LANGUAGE: +ContextReceivers -// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND: JS_IR // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57435 diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java index 9ffae885936..02303ab26ff 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibIrTextTestCaseGenerated.java @@ -623,21 +623,51 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @TestMetadata("arrayAccessCompositeOperators.kt") + public void testArrayAccessCompositeOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt"); + } + + @TestMetadata("arrayAccessOperators.kt") + public void testArrayAccessOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt"); + } + @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); } + @TestMetadata("compoundAssignmentOperators.kt") + public void testCompoundAssignmentOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt"); + } + @TestMetadata("contextReceiverMethod.kt") public void testContextReceiverMethod() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); } + @TestMetadata("contextualFunctionConversion.kt") + public void testContextualFunctionConversion() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt"); + } + + @TestMetadata("contextualInlineCall.kt") + public void testContextualInlineCall() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt"); + } + @TestMetadata("contextualPrimaryConstructorWithParams.kt") public void testContextualPrimaryConstructorWithParams() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); } + @TestMetadata("delegatedPropertiesOperators.kt") + public void testDelegatedPropertiesOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt"); + } + @TestMetadata("function.kt") public void testFunction() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/function.kt"); @@ -653,6 +683,16 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); } + @TestMetadata("iteratorOperator.kt") + public void testIteratorOperator() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt"); + } + + @TestMetadata("kt52791.kt") + public void testKt52791() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt"); + } + @TestMetadata("lazy.kt") public void testLazy() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/lazy.kt"); @@ -668,6 +708,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); } + @TestMetadata("passingLambdaToContextualParam.kt") + public void testPassingLambdaToContextualParam() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt"); + } + @TestMetadata("plusMatrix.kt") public void testPlusMatrix() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.kt"); @@ -688,6 +733,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); } + @TestMetadata("unaryOperators.kt") + public void testUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt"); + } + @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -699,6 +749,31 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase { 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); } + + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt"); + } + + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt"); + } + + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt"); + } + + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt"); + } + + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt"); + } } } 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 ff3542148a8..c78df1e2e43 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 @@ -709,24 +709,60 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @Test + @TestMetadata("arrayAccessCompositeOperators.kt") + public void testArrayAccessCompositeOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt"); + } + + @Test + @TestMetadata("arrayAccessOperators.kt") + public void testArrayAccessOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt"); + } + @Test @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); } + @Test + @TestMetadata("compoundAssignmentOperators.kt") + public void testCompoundAssignmentOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt"); + } + @Test @TestMetadata("contextReceiverMethod.kt") public void testContextReceiverMethod() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); } + @Test + @TestMetadata("contextualFunctionConversion.kt") + public void testContextualFunctionConversion() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt"); + } + + @Test + @TestMetadata("contextualInlineCall.kt") + public void testContextualInlineCall() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt"); + } + @Test @TestMetadata("contextualPrimaryConstructorWithParams.kt") public void testContextualPrimaryConstructorWithParams() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); } + @Test + @TestMetadata("delegatedPropertiesOperators.kt") + public void testDelegatedPropertiesOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt"); + } + @Test @TestMetadata("function.kt") public void testFunction() throws Exception { @@ -745,6 +781,18 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); } + @Test + @TestMetadata("iteratorOperator.kt") + public void testIteratorOperator() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt"); + } + + @Test + @TestMetadata("kt52791.kt") + public void testKt52791() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt"); + } + @Test @TestMetadata("lazy.kt") public void testLazy() throws Exception { @@ -763,6 +811,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); } + @Test + @TestMetadata("passingLambdaToContextualParam.kt") + public void testPassingLambdaToContextualParam() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt"); + } + @Test @TestMetadata("plusMatrix.kt") public void testPlusMatrix() throws Exception { @@ -787,6 +841,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); } + @Test + @TestMetadata("unaryOperators.kt") + public void testUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt"); + } + @Nested @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") @TestDataPath("$PROJECT_ROOT") @@ -795,6 +855,36 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT 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); } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt"); + } } } 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 index 6cf461731e3..50014e956a7 100644 --- 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 @@ -709,24 +709,60 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @Test + @TestMetadata("arrayAccessCompositeOperators.kt") + public void testArrayAccessCompositeOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt"); + } + + @Test + @TestMetadata("arrayAccessOperators.kt") + public void testArrayAccessOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt"); + } + @Test @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); } + @Test + @TestMetadata("compoundAssignmentOperators.kt") + public void testCompoundAssignmentOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt"); + } + @Test @TestMetadata("contextReceiverMethod.kt") public void testContextReceiverMethod() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); } + @Test + @TestMetadata("contextualFunctionConversion.kt") + public void testContextualFunctionConversion() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt"); + } + + @Test + @TestMetadata("contextualInlineCall.kt") + public void testContextualInlineCall() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt"); + } + @Test @TestMetadata("contextualPrimaryConstructorWithParams.kt") public void testContextualPrimaryConstructorWithParams() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); } + @Test + @TestMetadata("delegatedPropertiesOperators.kt") + public void testDelegatedPropertiesOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt"); + } + @Test @TestMetadata("function.kt") public void testFunction() throws Exception { @@ -745,6 +781,18 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); } + @Test + @TestMetadata("iteratorOperator.kt") + public void testIteratorOperator() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt"); + } + + @Test + @TestMetadata("kt52791.kt") + public void testKt52791() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt"); + } + @Test @TestMetadata("lazy.kt") public void testLazy() throws Exception { @@ -763,6 +811,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); } + @Test + @TestMetadata("passingLambdaToContextualParam.kt") + public void testPassingLambdaToContextualParam() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt"); + } + @Test @TestMetadata("plusMatrix.kt") public void testPlusMatrix() throws Exception { @@ -787,6 +841,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); } + @Test + @TestMetadata("unaryOperators.kt") + public void testUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt"); + } + @Nested @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") @TestDataPath("$PROJECT_ROOT") @@ -795,6 +855,36 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest { 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); } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt"); + } } } 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 index a8136d82d26..a2dcd85e920 100644 --- 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 @@ -709,24 +709,60 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @Test + @TestMetadata("arrayAccessCompositeOperators.kt") + public void testArrayAccessCompositeOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.kt"); + } + + @Test + @TestMetadata("arrayAccessOperators.kt") + public void testArrayAccessOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.kt"); + } + @Test @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/class.kt"); } + @Test + @TestMetadata("compoundAssignmentOperators.kt") + public void testCompoundAssignmentOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.kt"); + } + @Test @TestMetadata("contextReceiverMethod.kt") public void testContextReceiverMethod() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.kt"); } + @Test + @TestMetadata("contextualFunctionConversion.kt") + public void testContextualFunctionConversion() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.kt"); + } + + @Test + @TestMetadata("contextualInlineCall.kt") + public void testContextualInlineCall() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.kt"); + } + @Test @TestMetadata("contextualPrimaryConstructorWithParams.kt") public void testContextualPrimaryConstructorWithParams() throws Exception { runTest("compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.kt"); } + @Test + @TestMetadata("delegatedPropertiesOperators.kt") + public void testDelegatedPropertiesOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.kt"); + } + @Test @TestMetadata("function.kt") public void testFunction() throws Exception { @@ -745,6 +781,18 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt"); } + @Test + @TestMetadata("iteratorOperator.kt") + public void testIteratorOperator() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.kt"); + } + + @Test + @TestMetadata("kt52791.kt") + public void testKt52791() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/kt52791.kt"); + } + @Test @TestMetadata("lazy.kt") public void testLazy() throws Exception { @@ -763,6 +811,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/overloading.kt"); } + @Test + @TestMetadata("passingLambdaToContextualParam.kt") + public void testPassingLambdaToContextualParam() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt"); + } + @Test @TestMetadata("plusMatrix.kt") public void testPlusMatrix() throws Exception { @@ -787,6 +841,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { runTest("compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.kt"); } + @Test + @TestMetadata("unaryOperators.kt") + public void testUnaryOperators() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.kt"); + } + @Nested @TestMetadata("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP") @TestDataPath("$PROJECT_ROOT") @@ -795,6 +855,36 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest { 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); } + + @Test + @TestMetadata("canvas.kt") + public void testCanvas() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.kt"); + } + + @Test + @TestMetadata("compareTo.kt") + public void testCompareTo() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.kt"); + } + + @Test + @TestMetadata("dp.kt") + public void testDp() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.kt"); + } + + @Test + @TestMetadata("functionalType.kt") + public void testFunctionalType() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.kt"); + } + + @Test + @TestMetadata("monoidSum.kt") + public void testMonoidSum() throws Exception { + runTest("compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.kt"); + } } }