Files
kotlin-fork/compiler/testData/lineNumber/custom/tryCatchFinally.kt
T
Nikolay Krasko 3d9d6e666d Test several line numbers are generated for one instruction
(cherry picked from commit 1ea9280)
2016-10-05 18:49:38 +03:00

19 lines
371 B
Kotlin
Vendored

fun foo() {
try {
System.out?.println()
} catch (e: Throwable) {
System.out?.println()
} finally {
System.out?.println()
}
val t = try {
System.out?.println()
} catch (e: Throwable) {
System.out?.println()
} finally {
System.out?.println()
}
}
// 2 3 7 4 5 7 8 +10 11 15 12 13 15 10 17