diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java index ea15af2113a..e37be48b397 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBlackBoxCodegenTestGenerated.java @@ -2050,6 +2050,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/callableReference/javaField.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -16305,6 +16310,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt"); } + @TestMetadata("kt18911.kt") + public void testKt18911() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt"); + } + @TestMetadata("localEntities.kt") public void testLocalEntities() throws Exception { runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt"); @@ -18272,6 +18282,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -18317,6 +18332,16 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/compiler/testData/codegen/box/callableReference/kt21014.kt b/compiler/testData/codegen/box/callableReference/kt21014.kt new file mode 100644 index 00000000000..0eb9392205b --- /dev/null +++ b/compiler/testData/codegen/box/callableReference/kt21014.kt @@ -0,0 +1,17 @@ +// WITH_RUNTIME +// IGNORE_BACKEND: JVM +// IGNORE_LIGHT_ANALYSIS +// DONT_TARGET_EXACT_BACKEND: WASM +// WASM_MUTE_REASON: PROPERTY_REFERENCES + +fun box(): String { + val ints = intArrayOf(1, 2, 3) + + val test1 = IntArray::size.get(ints) + if (test1 != 3) throw Exception("IntArray::size.get(ints) != 3: $test1") + + val test2 = with(ints, IntArray::size) + if (test2 != 3) throw Exception("with(ints, IntArray::size) != 3: $test2") + + return "OK" +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt b/compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt new file mode 100644 index 00000000000..014c03df113 --- /dev/null +++ b/compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt @@ -0,0 +1,35 @@ +// TARGET_BACKEND: JVM +// WITH_RUNTIME +// FILE: kt18911.kt +fun testNullString() { + try { + val t1 = J.nullString()::capitalize + throw Exception("'J.nullString()::capitalize' should throw") + } catch (e: NullPointerException) {} +} + +fun testNotNullString() { + try { + val t1 = J.notNullString()::capitalize + throw Exception("'J.notNullString()::capitalize' should throw") + } catch (e: NullPointerException) {} +} + +fun box(): String { + testNullString() + testNotNullString() + return "OK" +} + +// FILE: J.java +import org.jetbrains.annotations.NotNull; + +public class J { + public static String nullString() { + return null; + } + + public static @NotNull String notNullString() { + return null; + } +} diff --git a/compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt b/compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt new file mode 100644 index 00000000000..6def37ebafa --- /dev/null +++ b/compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt @@ -0,0 +1,11 @@ +// IGNORE_BACKEND: JVM +open class Base(val fn: () -> String) + +class Test(x: String) : + Base({ + class Local(val t: String = x) + Local().t + }) + +fun box() = + Test("OK").fn() \ No newline at end of file diff --git a/compiler/testData/codegen/box/localClasses/kt10835.kt b/compiler/testData/codegen/box/localClasses/kt10835.kt new file mode 100644 index 00000000000..f538069e73e --- /dev/null +++ b/compiler/testData/codegen/box/localClasses/kt10835.kt @@ -0,0 +1,16 @@ +// IGNORE_BACKEND: JVM +class X(val x: String) { + open inner class Y { + fun foo() = x + } + + fun foo(s: String): String { + with(X(s+x)) { + val obj = object : Y() {} + return obj.foo() + } + } +} + +fun box() = + X("K").foo("O") \ No newline at end of file diff --git a/compiler/testData/codegen/box/localClasses/kt10835a.kt b/compiler/testData/codegen/box/localClasses/kt10835a.kt new file mode 100644 index 00000000000..0ee201b54e9 --- /dev/null +++ b/compiler/testData/codegen/box/localClasses/kt10835a.kt @@ -0,0 +1,22 @@ +// IGNORE_BACKEND: JVM +fun with2(receiver: T, block: T.() -> R): R { + return receiver.block() +} + +class X(val x: String) { + open inner class Y { + fun foo() = x + } + + fun foo(s: String): String { + var t = "" + with2(X(s+x)) { + val obj = object : Y() {} + t = obj.foo() + } + return t + } +} + +fun box() = + X("K").foo("O") \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeListing/sam/kt16650.kt b/compiler/testData/codegen/bytecodeListing/sam/kt16650.kt new file mode 100644 index 00000000000..3ae957c0fa2 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/sam/kt16650.kt @@ -0,0 +1,16 @@ +// WITH_SIGNATURES +// FILE: t.kt +fun main(x: DataStream) { + x.keyBy({ it.toLong() }) + x.keyBy(KeySelector{ it.toLong() }) +} + +// FILE: KeySelector.java +public interface KeySelector { + KEY getKey(IN value); +} + +// FILE: DataStream.java +public class DataStream { + public void keyBy(KeySelector key) {} +} diff --git a/compiler/testData/codegen/bytecodeListing/sam/kt16650.txt b/compiler/testData/codegen/bytecodeListing/sam/kt16650.txt new file mode 100644 index 00000000000..9a38d4261c5 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/sam/kt16650.txt @@ -0,0 +1,31 @@ +@kotlin.Metadata +final class<Ljava/lang/Object;LKeySelector;> TKt$main$1 { + // source: 't.kt' + static method (): void + method (): void + public final method getKey(p0: java.lang.Integer): java.lang.Long + public synthetic bridge method getKey(p0: java.lang.Object): java.lang.Object + enclosing method TKt.main(LDataStream;)V + public final static field INSTANCE: TKt$main$1 + inner (anonymous) class TKt$main$1 +} + +@kotlin.Metadata +final class<Ljava/lang/Object;LKeySelector;> TKt$main$2 { + // source: 't.kt' + static method (): void + method (): void + public final method getKey(p0: java.lang.Integer): java.lang.Long + public synthetic bridge method getKey(p0: java.lang.Object): java.lang.Object + enclosing method TKt.main(LDataStream;)V + public final static field INSTANCE: TKt$main$2 + inner (anonymous) class TKt$main$2 +} + +@kotlin.Metadata +public final class TKt { + // source: 't.kt' + public final static <(LDataStream;)V> method main(@org.jetbrains.annotations.NotNull p0: DataStream): void + inner (anonymous) class TKt$main$1 + inner (anonymous) class TKt$main$2 +} diff --git a/compiler/testData/codegen/bytecodeListing/sam/kt16650_ir.txt b/compiler/testData/codegen/bytecodeListing/sam/kt16650_ir.txt new file mode 100644 index 00000000000..50b30869177 --- /dev/null +++ b/compiler/testData/codegen/bytecodeListing/sam/kt16650_ir.txt @@ -0,0 +1,31 @@ +@kotlin.Metadata +final class<Ljava/lang/Object;LKeySelector;> TKt$main$1 { + // source: 't.kt' + static method (): void + method (): void + public final method getKey(p0: java.lang.Integer): java.lang.Long + public synthetic bridge method getKey(p0: java.lang.Object): java.lang.Object + enclosing method TKt.main(LDataStream;)V + public final static field ;> INSTANCE: TKt$main$1 + inner (anonymous) class TKt$main$1 +} + +@kotlin.Metadata +final class<Ljava/lang/Object;LKeySelector;> TKt$main$2 { + // source: 't.kt' + static method (): void + method (): void + public final method getKey(p0: java.lang.Integer): java.lang.Long + public synthetic bridge method getKey(p0: java.lang.Object): java.lang.Object + enclosing method TKt.main(LDataStream;)V + public final static field ;> INSTANCE: TKt$main$2 + inner (anonymous) class TKt$main$2 +} + +@kotlin.Metadata +public final class TKt { + // source: 't.kt' + public final static <(LDataStream;)V> method main(@org.jetbrains.annotations.NotNull p0: DataStream): void + inner (anonymous) class TKt$main$1 + inner (anonymous) class TKt$main$2 +} diff --git a/compiler/testData/codegen/java9/box/varHandle.kt b/compiler/testData/codegen/java9/box/varHandle.kt index bdbf3eab67e..c19d54067d7 100644 --- a/compiler/testData/codegen/java9/box/varHandle.kt +++ b/compiler/testData/codegen/java9/box/varHandle.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +PolymorphicSignature // TARGET_BACKEND: JVM -// IGNORE_BACKEND: JVM_IR // FULL_JDK // SKIP_JDK6 // WITH_RUNTIME diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index 86566d0a845..e81eacdb7fd 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -2050,6 +2050,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/callableReference/javaField.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -16305,6 +16310,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt"); } + @TestMetadata("kt18911.kt") + public void testKt18911() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt"); + } + @TestMetadata("localEntities.kt") public void testLocalEntities() throws Exception { runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt"); @@ -18272,6 +18282,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -18317,6 +18332,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java index 42e3cc1e7ac..7882a32b3fa 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java @@ -1543,6 +1543,11 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); } + @TestMetadata("kt16650.kt") + public void testKt16650() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); + } + @TestMetadata("lambdaGenericFunInterface.kt") public void testLambdaGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index d68bdc6c5c5..b0ca0db8520 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -2017,6 +2017,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class CallableReference extends AbstractLightAnalysisModeTest { + @TestMetadata("kt21014.kt") + public void ignoreKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -16305,6 +16310,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt"); } + @TestMetadata("kt18911.kt") + public void testKt18911() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt"); + } + @TestMetadata("localEntities.kt") public void testLocalEntities() throws Exception { runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt"); @@ -18249,6 +18259,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class LocalClasses extends AbstractLightAnalysisModeTest { + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void ignoreCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void ignoreClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -18259,6 +18274,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/localClasses/closureWithSelfInstantiation.kt"); } + @TestMetadata("kt10835.kt") + public void ignoreKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void ignoreKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("subclassingExtensionReceiverClass.kt") public void ignoreSubclassingExtensionReceiverClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index 749b7f10298..18a6802742a 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -2050,6 +2050,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/callableReference/javaField.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -16305,6 +16310,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator.kt"); } + @TestMetadata("kt18911.kt") + public void testKt18911() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/kt18911.kt"); + } + @TestMetadata("localEntities.kt") public void testLocalEntities() throws Exception { runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/localEntities.kt"); @@ -18272,6 +18282,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -18317,6 +18332,16 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java index d4881292cd6..88c11ed0c70 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java @@ -1543,6 +1543,11 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); } + @TestMetadata("kt16650.kt") + public void testKt16650() throws Exception { + runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); + } + @TestMetadata("lambdaGenericFunInterface.kt") public void testLambdaGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java index 250ada97c5f..3ae4321123f 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -1470,6 +1470,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -14562,6 +14567,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -14607,6 +14617,16 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index 1afba166ad5..a31bcab7729 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -1470,6 +1470,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -14562,6 +14567,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -14607,6 +14617,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 4fe28af80a4..de3410bf1fc 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -1470,6 +1470,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/callableReference/genericLocalClassConstructorReference.kt"); } + @TestMetadata("kt21014.kt") + public void testKt21014() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/kt21014.kt"); + } + @TestMetadata("kt37604.kt") public void testKt37604() throws Exception { runTest("compiler/testData/codegen/box/callableReference/kt37604.kt"); @@ -14627,6 +14632,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -14672,6 +14682,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 217848da792..9be89ccb6fb 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -8753,6 +8753,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInParameterInitializer.kt"); } + @TestMetadata("capturingInDefaultConstructorParameter.kt") + public void testCapturingInDefaultConstructorParameter() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/capturingInDefaultConstructorParameter.kt"); + } + @TestMetadata("closureOfInnerLocalClass.kt") public void testClosureOfInnerLocalClass() throws Exception { runTest("compiler/testData/codegen/box/localClasses/closureOfInnerLocalClass.kt"); @@ -8793,6 +8798,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/localClasses/innerOfLocalCaptureExtensionReceiver.kt"); } + @TestMetadata("kt10835.kt") + public void testKt10835() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835.kt"); + } + + @TestMetadata("kt10835a.kt") + public void testKt10835a() throws Exception { + runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt"); + } + @TestMetadata("kt2700.kt") public void testKt2700() throws Exception { runTest("compiler/testData/codegen/box/localClasses/kt2700.kt");