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