mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
5 lines
195 B
Java
5 lines
195 B
Java
class Foo<T extends Enum> {
|
|
public T bar(Class<? extends T> type, String str) {
|
|
return <error descr="Incompatible types: Enum is not convertible to T">Enum.valueOf(type, str);</error>
|
|
}
|
|
} |