Debugger: fix step over inside inline function (do not step into function literal argument)

This commit is contained in:
Natalia Ukhorskaya
2016-04-06 17:30:35 +03:00
parent 8ad339836d
commit f0cfd450e5
9 changed files with 171 additions and 100 deletions
@@ -0,0 +1,16 @@
package stepOverInsideInlineFun
fun main(args: Array<String>) {
bar {
val b = 1
}
}
inline fun bar(f: (Int) -> Unit) {
//Breakpoint!
val a = 1
val f = f(1)
val c = 1
}
// STEP_OVER: 3
@@ -51,4 +51,4 @@ inline fun foo(f: () -> Int): Int {
fun test(i: Int) = 1
// STEP_OVER: 19
// STEP_OVER: 20