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:
Nikolay Krasko
2017-01-26 16:48:35 +03:00
parent 4a4a8250fd
commit c8999c4141
3 changed files with 31 additions and 0 deletions
@@ -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()
}