FIR: report WRONG_ANNOTATION_TARGET on types

This commit is contained in:
Mikhail Glukhikh
2021-05-18 11:11:28 +03:00
parent 2a33a6927c
commit 9a13ec9b76
45 changed files with 89 additions and 300 deletions
@@ -0,0 +1,9 @@
annotation class My
fun foo(arg: Int): Int {
try {
return 1 / (arg - arg)
} catch (e: <!WRONG_ANNOTATION_TARGET!>@My<!> Exception) {
return -1
}
}