Files
Alexey Belkov 5f2d1a45a6 [kotlin] AddThrowsAnnotationIntention: add tests to assert existing behavior
KTIJ-30536

GitOrigin-RevId: aa876c17cc80f2c36822fc1f9033fb27fa8df5c8
2024-07-10 16:35:53 +00:00

9 lines
161 B
Kotlin

// WITH_STDLIB
class FooException : Exception()
class BarException : Exception()
@Throws(*[BarException::class])
fun test() {
<caret>throw FooException()
}