Test for "Debugger: "Step over" dives into recursive call" (KT-12924)
Fixed in 7992df7b93
(cherry picked from commit 78e2f05)
#KT-12924 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
c21e1eb857
commit
8c2e61604e
+21
@@ -0,0 +1,21 @@
|
||||
package stepOverInlineFunWithRecursionCall
|
||||
|
||||
fun foo(v: Int): Int {
|
||||
if (v == 2) {
|
||||
//Breakpoint!
|
||||
inlineCall { foo(1) } // 1, 2 (lambda)
|
||||
}
|
||||
|
||||
return 2 // This line should be visited // 3
|
||||
}
|
||||
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
foo(2) // 4
|
||||
}
|
||||
|
||||
inline fun inlineCall(l: () -> Unit) {
|
||||
l()
|
||||
}
|
||||
|
||||
// STEP_OVER: 3
|
||||
Reference in New Issue
Block a user