Stepping for inline functions: add test for last statement in for

This commit is contained in:
Natalia Ukhorskaya
2015-10-27 19:40:50 +03:00
parent de5c3733e9
commit 932542891b
3 changed files with 41 additions and 0 deletions
@@ -0,0 +1,20 @@
package stepOverForWithInline
fun main(args: Array<String>) {
//Breakpoint!
var prop = 0
// inline on last line in for
for(i in 0..1) {
prop++
foo { test(1) }
}
}
inline fun foo(f: () -> Int): Int {
val a = 1
return f()
}
fun test(i: Int) = i
// STEP_OVER: 9