Files
kotlin-fork/idea/testData/debugger/nativeExceptions/kt29817.kt
T
2019-02-18 20:36:26 +03:00

17 lines
241 B
Kotlin
Vendored

package sample
fun hello(): String = "Hello, Kotlin/Native!"
fun bar(count: Int) {
foo(count - 1)
}
fun foo(count: Int) {
if (count <= 0) throw Exception("foo")
bar(count - 1)
}
fun main() {
foo(20)
println(hello())
}