mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
17 lines
329 B
Java
17 lines
329 B
Java
class TestClassT {
|
|
static {
|
|
new B().<caret>foo(TestClassT.class);
|
|
}
|
|
|
|
public static class A {
|
|
public A foo(Class<?> type) {
|
|
return new A();
|
|
}
|
|
}
|
|
public static class B extends A {
|
|
@Override
|
|
public B foo(Class type) {
|
|
return new B();
|
|
}
|
|
}
|
|
} |