mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 11:44:39 +07:00
12 lines
307 B
Java
12 lines
307 B
Java
class Generic<T> {
|
|
Generic() {}
|
|
}
|
|
|
|
class Test {
|
|
void foo () {
|
|
Generic g = new Generic ();
|
|
if (<warning descr="Condition 'g instanceof Generic<String>' is always 'true'">g instanceof <error descr="Illegal generic type for instanceof">Generic<String></error></warning>) {
|
|
return;
|
|
}
|
|
}
|
|
} |