raw substitutor when erasure happened during inference

This commit is contained in:
Anna Kozlova
2014-03-27 20:54:26 +01:00
parent 87ef3f9d97
commit e55a20cc24
3 changed files with 17 additions and 3 deletions
@@ -0,0 +1,9 @@
import java.util.Collection;
abstract class NCollections {
public <T> void foo(Collection<? extends T> coll) {
bar((Collection)coll);
}
public abstract <T2 extends Object & Comparable<? super T2>> T2 bar(Collection<? extends T2> coll);
}