Fix step over if there isn't any inlined arguments

This commit is contained in:
Natalia Ukhorskaya
2015-09-09 11:50:14 +03:00
parent aabf579454
commit 0096f2668c
5 changed files with 73 additions and 15 deletions
@@ -0,0 +1,26 @@
package stepOverSimpleFun
fun main(args: Array<String>) {
foo(1)
val a = 1
}
fun foo(i: Int): Int {
if (i > 0) {
//Breakpoint!
return 1
}
return 1
}
// Do not remove: kotlin strata should be available for this test
inline fun f(p: () -> Unit) {
val b = 1
p()
}
fun f2() {
f {
val b = 1
}
}