Files
kotlin-fork/compiler/testData/compileJavaAgainstKotlin/method/throws/TraitMembers.kt
T
Denis Zharkov 6ef2340eb5 Migrate type of throws parameter to KClass
Change declaration, testData and codegen parts for `throws`
2015-04-21 08:08:31 +03:00

17 lines
215 B
Kotlin

package test
class E1: Exception()
class E2: Exception()
trait Trait {
throws()
fun none() {}
throws(E1::class)
fun one() {}
throws(E1::class, E2::class)
fun two() {}
}
class Test: Trait