mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
6 lines
259 B
Java
6 lines
259 B
Java
class Foo<T extends Enum> {
|
|
public T bar(Class<? extends T> type, String str) {
|
|
return <error descr="Incompatible types. Required T but 'valueOf' was inferred to T:
|
|
Incompatible types: Enum is not convertible to T">Enum.valueOf(type, str);</error>
|
|
}
|
|
} |