Files
kotlin-fork/idea/testData/intentions/addThrowsAnnotation/hasThrowsWithDifferentClassArgument5.kt
T

12 lines
229 B
Kotlin
Vendored

// DISABLE-ERRORS
// WITH_RUNTIME
// IS_APPLICABLE: false
class FooException : Exception()
class BarException : Exception()
@Throws(exceptionClasses = listOf(BarException::class))
fun test() {
<caret>throw FooException()
}