mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
9 lines
178 B
Kotlin
9 lines
178 B
Kotlin
class E1: Exception()
|
|
|
|
throws(javaClass<E1>())
|
|
fun one(a: Int = 1) {}
|
|
|
|
class One [throws(javaClass<E1>())] (a: Int = 1) {
|
|
throws(javaClass<E1>())
|
|
fun one(a: Int = 1) {}
|
|
} |