package foo; import java.io.IOException class A { @Throws(IOException::class) fun foo(y: E) {} } // ALLOW_AST_ACCESS