Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/throws/Delegation.kt
2014-03-19 23:24:27 +04:00

23 lines
336 B
Kotlin

package test
class E1: Exception()
class E2: Exception()
trait Trait {
throws()
fun none()
throws(javaClass<E1>())
fun one()
throws(javaClass<E1>(), javaClass<E2>())
fun two()
}
class Impl: Trait {
override fun none() {}
override fun one() {}
override fun two() {}
}
class Test: Trait by Impl()