diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeSteppingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeSteppingTestGenerated.java index 90874c05b92..5403b642f48 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeSteppingTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeSteppingTestGenerated.java @@ -391,6 +391,12 @@ public class FirLightTreeSteppingTestGenerated extends AbstractFirLightTreeStepp runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiSteppingTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiSteppingTestGenerated.java index 3c25995da24..2cab1594591 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiSteppingTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiSteppingTestGenerated.java @@ -391,6 +391,12 @@ public class FirPsiSteppingTestGenerated extends AbstractFirPsiSteppingTest { runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception { diff --git a/compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt b/compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt new file mode 100644 index 00000000000..7d914b1f813 --- /dev/null +++ b/compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt @@ -0,0 +1,81 @@ +// WITH_STDLIB +// FILE: test.kt + +import kotlin.coroutines.* + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) +} + +suspend fun empty() {} + +fun box() { + builder { + empty() + builder { + empty() + } + } +} + +// EXPECTATIONS JVM JVM_IR +// test.kt:15 box +// test.kt:7 builder +// Continuation.kt:66 +// test.kt:7 builder +// Continuation.kt:68 getContext +// test.kt:-1 +// test.kt:-1 create +// test.kt:12 empty +// test.kt:16 invokeSuspend +// test.kt:17 invokeSuspend +// test.kt:7 builder +// Continuation.kt:66 +// test.kt:7 builder +// Continuation.kt:68 getContext +// test.kt:-1 +// test.kt:-1 create +// test.kt:12 empty +// test.kt:18 invokeSuspend +// test.kt:19 invokeSuspend +// Continuation.kt:71 resumeWith +// test.kt:8 resumeWith +// test.kt:9 resumeWith +// Continuation.kt:71 resumeWith +// test.kt:10 builder +// test.kt:20 invokeSuspend +// Continuation.kt:71 resumeWith +// test.kt:8 resumeWith +// test.kt:9 resumeWith +// Continuation.kt:71 resumeWith +// test.kt:10 builder +// test.kt:21 box + +// EXPECTATIONS JS_IR +// test.kt:15 box +// test.kt:15 box$slambda +// test.kt:15 box +// test.kt:82 +// test.kt:7 builder +// test.kt:82 +// test.kt:82 +// test.kt:16 doResume +// test.kt:12 empty +// test.kt:17 doResume +// test.kt:17 box$slambda$slambda +// test.kt:17 doResume +// test.kt:82 +// test.kt:7 builder +// test.kt:82 +// test.kt:82 +// test.kt:18 doResume +// test.kt:12 empty +// test.kt:19 doResume +// test.kt:82 resumeWith +// test.kt:10 builder +// test.kt:20 doResume +// test.kt:82 resumeWith +// test.kt:10 builder +// test.kt:21 box diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithBytecodeInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithBytecodeInlinerTestGenerated.java index 74448edfc28..e6a10f1c466 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithBytecodeInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithBytecodeInlinerTestGenerated.java @@ -391,6 +391,12 @@ public class IrSteppingWithBytecodeInlinerTestGenerated extends AbstractIrSteppi runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithIrInlinerTestGenerated.java index ef59083a994..b984aa13acc 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSteppingWithIrInlinerTestGenerated.java @@ -391,6 +391,12 @@ public class IrSteppingWithIrInlinerTestGenerated extends AbstractIrSteppingWith runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/SteppingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/SteppingTestGenerated.java index 6cfd118e68f..a781d13ca33 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/SteppingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/SteppingTestGenerated.java @@ -391,6 +391,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest { runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsSteppingTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsSteppingTestGenerated.java index d499eadc2ed..d578b50ca8e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsSteppingTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsSteppingTestGenerated.java @@ -391,6 +391,12 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest { runTest("compiler/testData/debug/stepping/nestedInline.kt"); } + @Test + @TestMetadata("noLinenumberInInvokeOfSuspendLambda.kt") + public void testNoLinenumberInInvokeOfSuspendLambda() throws Exception { + runTest("compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt"); + } + @Test @TestMetadata("noParametersArgumentCallInExpression.kt") public void testNoParametersArgumentCallInExpression() throws Exception {