Add test for KT-44074

#KT-44074
This commit is contained in:
Mikhael Bogdanov
2021-01-28 10:56:47 +01:00
parent 5fa9acc17a
commit bea29d0de5
4 changed files with 32 additions and 0 deletions
@@ -483,6 +483,11 @@ public class IrKotlinSteppingTestGenerated extends AbstractIrKotlinSteppingTest
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt24343.kt");
}
@TestMetadata("kt44074.kt")
public void testKt44074() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt44074.kt");
}
@TestMetadata("lambdaToInlineFold.kt")
public void testLambdaToInlineFold() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/lambdaToInlineFold.kt");
@@ -483,6 +483,11 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt24343.kt");
}
@TestMetadata("kt44074.kt")
public void testKt44074() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt44074.kt");
}
@TestMetadata("lambdaToInlineFold.kt")
public void testLambdaToInlineFold() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/lambdaToInlineFold.kt");
@@ -0,0 +1,14 @@
package test
fun main() {
val toSet = setOf<Int>()
val clusterToReports = toSet.groupBy { it }
val updatedClusters = mutableListOf<Int>()
//Breakpoint!
updatedClusters.addAll(clusterToReports.map { it.value[0] }) // step over here
test(updatedClusters)
}
fun test(a: Any) {
}
@@ -0,0 +1,8 @@
LineBreakpoint created at kt44074.kt:8
Run Java
Connected to the target VM
kt44074.kt:8
kt44074.kt:9
Disconnected from the target VM
Process finished with exit code 0