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

10 lines
176 B
Kotlin
Vendored

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