Debugger: Add test for KT-34905

This commit is contained in:
Yan Zhulanow
2020-02-05 17:39:03 +09:00
parent 6690f946d6
commit ea7ffa70b3
3 changed files with 33 additions and 0 deletions
@@ -477,6 +477,11 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt24343.kt");
}
@TestMetadata("kt34905.kt")
public void testKt34905() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt34905.kt");
}
@TestMetadata("lambdaToInlineFold.kt")
public void testLambdaToInlineFold() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/lambdaToInlineFold.kt");
@@ -0,0 +1,18 @@
package test
fun main(args: Array<String>) {
lookAtMe {
val c = "c"
}
}
inline fun lookAtMe(f: String.() -> Unit) {
val a = "a"
//Breakpoint!
"123".
f()
val b = "b"
}
// STEP_OVER: 3
@@ -0,0 +1,10 @@
LineBreakpoint created at kt34905.kt:13
Run Java
Connected to the target VM
kt34905.kt:13
kt34905.kt:15
kt34905.kt:16
kt34905.kt:7
Disconnected from the target VM
Process finished with exit code 0