Fix parent and containingFile for throws-reference list
Otherwise, exception is thrown during type inference because default implementations effectively return null ^KT-29287 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
import foo.A;
|
||||
|
||||
public class ThrowsOnGenericMethod {
|
||||
public static void main(String[] args) {
|
||||
new A().<error descr="Unhandled exception: java.io.IOException">foo</error>("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package foo;
|
||||
import java.io.IOException
|
||||
|
||||
class A {
|
||||
@Throws(IOException::class)
|
||||
fun <E> foo(y: E) {}
|
||||
}
|
||||
|
||||
// ALLOW_AST_ACCESS
|
||||
+1
@@ -0,0 +1 @@
|
||||
// WITH_RUNTIME
|
||||
Reference in New Issue
Block a user