mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
inference: unchecked warning in type params bounds (IDEA-152758)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
abstract class Group {
|
||||
|
||||
public Group() {
|
||||
}
|
||||
|
||||
public <T extends Category> T get(Key<T> key) {
|
||||
<error descr="Incompatible types. Found: 'Category', required: 'T'">return getCategory(key);</error>
|
||||
}
|
||||
|
||||
public abstract <R extends Category<R>> R getCategory(Key<R> key);
|
||||
}
|
||||
|
||||
interface Category<Tc extends Category> {
|
||||
}
|
||||
|
||||
class Key<Tk extends Category> {
|
||||
}
|
||||
Reference in New Issue
Block a user