Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/throwsAnnotation.kt
T
2023-01-02 15:05:38 +00:00

11 lines
307 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 { TODO() }
// Should be mapped to java.lang.Throwable
@Throws(kotlin.Throwable::class)
fun baz() {}
}