Debugger: fix step over for if with inline function call without lambda arguments

This commit is contained in:
Natalia Ukhorskaya
2016-01-15 16:43:20 +03:00
parent dbc2299cf2
commit 203cab8d1b
3 changed files with 22 additions and 5 deletions
@@ -35,6 +35,11 @@ fun main(args: Array<String>) {
else {
foo { test(1) }
}
// Reified function call in if condition
if (reified(1) != 1) {
val a = 1
}
}
inline fun foo(f: () -> Int): Int {
@@ -44,4 +49,9 @@ inline fun foo(f: () -> Int): Int {
fun test(i: Int) = 1
// STEP_OVER: 22
inline fun <reified T> reified(f: T): Int {
val a = 1
return 1
}
// STEP_OVER: 25