Debugger: Remove false-positive assertion (KT-24343)
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user