Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/throws/DefaultArgs.kt
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

11 lines
184 B
Kotlin

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