inference: unchecked warning in type params bounds (IDEA-152758)

This commit is contained in:
Anna Kozlova
2016-03-14 17:48:06 +01:00
parent 14c18f73ed
commit e31a812438
3 changed files with 24 additions and 0 deletions
@@ -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> {
}