Files
kotlin-fork/compiler/testData/codegen/controlStructures/tryCatch.kt
T

10 lines
197 B
Kotlin
Vendored

fun foo(s: String): String? {
try {
Integer.parseInt(s);
return "no message";
}
catch(e: NumberFormatException) {
return e.message // Work around an overload-resolution bug
}
}