Files
kotlin-fork/compiler/testData/compileJavaAgainstKotlin/method/throws/DefaultArgs.kt
T
2015-04-13 15:26:20 +02:00

11 lines
202 B
Kotlin

package test
class E1: Exception()
throws(javaClass<E1>()) overloads
fun one(a: Int = 1) {}
class One [throws(javaClass<E1>())] (a: Int = 1) {
throws(javaClass<E1>())
fun one(a: Int = 1) {}
}