blob: ed215c76f6e7d0c50b9030df74733a1c676d8847 [file] [log] [blame]
import java.lang.reflect.Constructor;
public class X {
public <T extends X> Constructor<T> ctor() {
return null;
}
static <T extends X> T f1() throws Exception {
return new X().<T>ctor().newInstance(new Object[0]);
}
static <T extends X> T f2() throws Exception {
return f1();
}
}