Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/AnnotatedTryCatch.kt
T
2021-05-20 12:22:22 +03:00

10 lines
146 B
Kotlin
Vendored

annotation class My
fun foo(arg: Int): Int {
try {
return 1 / (arg - arg)
} catch (e: @My Exception) {
return -1
}
}