Files
kotlin-fork/plugins/uast-kotlin/testData/TryCatch.kt
T
2020-03-26 12:55:45 +03:00

33 lines
598 B
Kotlin
Vendored

class TryCatch {
fun catches() {
try {
body()
} catch (e: Throwable) {
catcher()
} finally {
finalizer()
}
}
fun body() {}
fun catcher() {}
fun finalizer() {}
}
class TryCatchAnnotations {
@java.lang.SuppressWarnings("Something")
fun catches() {
try {
body()
} catch (@java.lang.SuppressWarnings("Something") e: Throwable) {
catcher()
} finally {
finalizer()
}
}
fun body() {}
fun catcher() {}
fun finalizer() {}
}