mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
line numbers for stepping. Running JVM instance and read stepping events from it to verify with the test data.
27 lines
426 B
Kotlin
Vendored
27 lines
426 B
Kotlin
Vendored
//FILE: test.kt
|
|
fun box() {
|
|
val n = 3
|
|
val k = foo(n)
|
|
}
|
|
|
|
fun foo(n :Int ) : Int {
|
|
if (n == 1 || n == 0) {
|
|
return 1
|
|
}
|
|
return foo(n-1) * n
|
|
}
|
|
|
|
// LINENUMBERS
|
|
// TestKt.box():3
|
|
// TestKt.box():4
|
|
// TestKt.foo(int):8
|
|
// TestKt.foo(int):11
|
|
// TestKt.foo(int):8
|
|
// TestKt.foo(int):11
|
|
// TestKt.foo(int):8
|
|
// TestKt.foo(int):9
|
|
// TestKt.foo(int):11
|
|
// TestKt.foo(int):11
|
|
// TestKt.box():4
|
|
// TestKt.box():5
|