mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
11 lines
297 B
Kotlin
Vendored
11 lines
297 B
Kotlin
Vendored
|
|
class MyException : Exception
|
|
class C @Throws(Exception::class) constructor(a: Int = 1) {
|
|
@Throws(java.io.IOException::class, MyException::class)
|
|
fun readFile(name: String): String {}
|
|
|
|
// Should be mapped to java.lang.Throwable
|
|
@Throws(kotlin.Throwable::class)
|
|
fun baz() {}
|
|
}
|