mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
17 lines
219 B
Kotlin
Vendored
17 lines
219 B
Kotlin
Vendored
package test
|
|
|
|
class E1: Exception()
|
|
class E2: Exception()
|
|
|
|
interface Trait {
|
|
throws()
|
|
fun none() {}
|
|
|
|
throws(E1::class)
|
|
fun one() {}
|
|
|
|
throws(E1::class, E2::class)
|
|
fun two() {}
|
|
}
|
|
|
|
class Test: Trait |