mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
17 lines
334 B
Java
17 lines
334 B
Java
class Foo<T> {
|
|
|
|
private T _value;
|
|
|
|
T getValue() {
|
|
return _value;
|
|
}
|
|
|
|
static Foo<?> getFoo() {
|
|
return new Foo<>();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Foo<?> foo = getFoo();
|
|
double value = <error descr="Inconvertible types; cannot cast 'capture<?>' to 'double'">(double) foo.getValue()</error>;
|
|
}
|
|
} |