Debugger: Add test for KT-34905
This commit is contained in:
+5
@@ -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
|
||||
Reference in New Issue
Block a user