annotation class A fun box(): String? { var value_1 = false var value_2 = true try { throw Exception() } catch (: Throwable) { value_1 = true } try { throw Exception() } catch (@A : Throwable) { value_2 = false } if (!value_1 || value_2) return null return "OK" }