Fix in test bad behaviour of smart step into for stored lambda
When lambda is stored and not executed immediately, smart step into doesn't work.
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package smartStepIntoStoredLambda
|
||||
|
||||
fun foo(a: Any) {}
|
||||
|
||||
fun store(a: () -> Unit): () -> Unit {
|
||||
return a
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// SMART_STEP_INTO_BY_INDEX: 2
|
||||
//Breakpoint!
|
||||
val some = store() {
|
||||
foo("hi")
|
||||
}
|
||||
|
||||
some()
|
||||
}
|
||||
Reference in New Issue
Block a user