mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
15 lines
213 B
Kotlin
15 lines
213 B
Kotlin
package test
|
|
|
|
class E1: Exception()
|
|
class E2: Exception()
|
|
|
|
class Test {
|
|
throws()
|
|
fun none() {}
|
|
|
|
throws(javaClass<E1>())
|
|
fun one() {}
|
|
|
|
throws(javaClass<E1>(), javaClass<E2>())
|
|
fun two() {}
|
|
} |