blob: 26dd689bae11bfc8b487fd1dbeb0c0783c74f436 [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();
}
}