diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java index 4b9b710e596..97fd533dfc9 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java @@ -2678,6 +2678,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest { runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); } + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + @Test @TestMetadata("lambdaInEnumEntryConstructorCall.kt") public void testLambdaInEnumEntryConstructorCall() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/LightTreeFir2IrTextTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/LightTreeFir2IrTextTestGenerated.java index 7286e4db1b8..ccbe3b1cdf5 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/LightTreeFir2IrTextTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/LightTreeFir2IrTextTestGenerated.java @@ -2678,6 +2678,12 @@ public class LightTreeFir2IrTextTestGenerated extends AbstractLightTreeFir2IrTex runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); } + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + @Test @TestMetadata("lambdaInEnumEntryConstructorCall.kt") public void testLambdaInEnumEntryConstructorCall() throws Exception { diff --git a/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt new file mode 100644 index 00000000000..393b73ef70d --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt @@ -0,0 +1,14 @@ +FILE fqName: fileName:/kt55458.kt + FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + BLOCK_BODY + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] + CALL 'public final fun to (that: B of kotlin.TuplesKt.to): kotlin.Pair [infix] declared in kotlin.TuplesKt' type=kotlin.Pair origin=null + : kotlin.Int + : kotlin.Int + $receiver: CONST Int type=kotlin.Int value=1 + that: CONST Int type=kotlin.Int value=2 + VAR name:a type:kotlin.Int [val] + CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_0: kotlin.Pair [val] declared in .main' type=kotlin.Pair origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io.ConsoleKt' type=kotlin.Unit origin=null + message: GET_VAR 'val a: kotlin.Int [val] declared in .main' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt b/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt new file mode 100644 index 00000000000..5ac6e131ff6 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/kt55458.fir.kt.txt @@ -0,0 +1,5 @@ +fun main() { + val : Pair = 1.to(that = 2) + val a: Int = .component1() + println(message = a) +} diff --git a/compiler/testData/ir/irText/firProblems/kt55458.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt new file mode 100644 index 00000000000..b8cfe58b340 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt @@ -0,0 +1,15 @@ +FILE fqName: fileName:/kt55458.kt + FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit + BLOCK_BODY + COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] + CALL 'public final fun to (that: B of kotlin.TuplesKt.to): kotlin.Pair [infix] declared in kotlin.TuplesKt' type=kotlin.Pair origin=null + : kotlin.Int + : kotlin.Int + $receiver: CONST Int type=kotlin.Int value=1 + that: CONST Int type=kotlin.Int value=2 + VAR name:a type:kotlin.Int [val] + CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_0: kotlin.Pair [val] declared in .main' type=kotlin.Pair origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io.ConsoleKt' type=kotlin.Unit origin=null + message: GET_VAR 'val a: kotlin.Int [val] declared in .main' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt b/compiler/testData/ir/irText/firProblems/kt55458.kt new file mode 100644 index 00000000000..9553345bf80 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt @@ -0,0 +1,6 @@ +// WITH_STDLIB + +fun main() { + val (a: Any, _) = 1 to 2 + println(a) +} diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt.txt b/compiler/testData/ir/irText/firProblems/kt55458.kt.txt new file mode 100644 index 00000000000..5f4433b80b4 --- /dev/null +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt.txt @@ -0,0 +1,7 @@ +fun main() { + // COMPOSITE { + val tmp0_container: Pair = 1.to(that = 2) + val a: Int = tmp0_container.component1() + // } + println(message = a) +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/IrTextTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/IrTextTestGenerated.java index f52bda5d828..e2e4c0a07b8 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/IrTextTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/ir/IrTextTestGenerated.java @@ -2678,6 +2678,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest { runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); } + @Test + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + @Test @TestMetadata("lambdaInEnumEntryConstructorCall.kt") public void testLambdaInEnumEntryConstructorCall() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibTextTestCaseGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibTextTestCaseGenerated.java index a403752361e..6ca2fa511df 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibTextTestCaseGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/klib/KlibTextTestCaseGenerated.java @@ -1960,6 +1960,11 @@ public class KlibTextTestCaseGenerated extends AbstractKlibTextTestCase { runTest("compiler/testData/ir/irText/firProblems/kt43342.kt"); } + @TestMetadata("kt55458.kt") + public void testKt55458() throws Exception { + runTest("compiler/testData/ir/irText/firProblems/kt55458.kt"); + } + @TestMetadata("lambdaInEnumEntryConstructorCall.kt") public void testLambdaInEnumEntryConstructorCall() throws Exception { runTest("compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt");