Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/throws/Delegation.kt
2015-05-12 19:43:17 +02:00

23 lines
322 B
Kotlin

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()