Fix throws-list for case of kotlin.Throwable in ultra-light classes

This commit is contained in:
Denis Zharkov
2018-12-05 17:49:34 +03:00
parent b16bfad079
commit 859223baa2
2 changed files with 7 additions and 2 deletions
@@ -3,4 +3,8 @@ 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() {}
}