Fix stepping for inline function inside while statement
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
package stepOverWhileWithInline
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
var prop = 0
|
||||
// inline on last line of while
|
||||
while(prop < 1) {
|
||||
prop++
|
||||
foo { test(1) }
|
||||
}
|
||||
|
||||
// inline call inside while
|
||||
while(prop < 2) {
|
||||
foo { test(1) }
|
||||
prop++
|
||||
}
|
||||
|
||||
do {
|
||||
prop++
|
||||
foo { test(1) }
|
||||
} while(prop < 3)
|
||||
|
||||
do {
|
||||
foo { test(1) }
|
||||
prop++
|
||||
} while(prop < 4)
|
||||
}
|
||||
|
||||
inline fun foo(f: () -> Int): Int {
|
||||
val a = 1
|
||||
return f()
|
||||
}
|
||||
|
||||
fun test(i: Int) = i
|
||||
|
||||
// STEP_OVER: 41
|
||||
Reference in New Issue
Block a user