Debugger: Remove false-positive assertion (KT-24343)

This commit is contained in:
Yan Zhulanow
2018-09-17 22:15:34 +03:00
parent 713dc589e0
commit b8c756a4e8
4 changed files with 26 additions and 3 deletions
@@ -58,7 +58,5 @@ class KotlinStepOverInlineFilter(val project: Project, val data: StepOverFilterD
throw IllegalStateException() // Should not be called from Kotlin hint
}
override fun getCallingExpressionLines(): Range<Int>? {
throw IllegalStateException() // Should not be called from Kotlin hint
}
override fun getCallingExpressionLines(): Range<Int>? = null
}
@@ -0,0 +1,10 @@
package kt24343
fun main(args: Array<String>) {
val list = listOf(1, 2)
//Breakpoint!
list.map { it + 1 }
println()
}
// STEP_OVER: 1
@@ -0,0 +1,10 @@
LineBreakpoint created at kt24343.kt:6
Run Java
Connected to the target VM
kt24343.kt:6
kt24343.kt:6
resuming kt24343.kt:6
Disconnected from the target VM
Process finished with exit code 0
@@ -453,6 +453,11 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/inlineInObjectDex.kt");
}
@TestMetadata("kt24343.kt")
public void testKt24343() throws Exception {
runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/kt24343.kt");
}
@TestMetadata("noParameterLambdaArgumentCallInInline.kt")
public void testNoParameterLambdaArgumentCallInInline() throws Exception {
runTest("idea/testData/debugger/tinyApp/src/stepping/stepOver/noParameterLambdaArgumentCallInInline.kt");