mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
23 lines
325 B
Kotlin
Vendored
23 lines
325 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 Impl: Trait {
|
|
override fun none() {}
|
|
override fun one() {}
|
|
override fun two() {}
|
|
}
|
|
|
|
class Test: Trait by Impl() |