push down/pull up: ensure raw substitutor correctly erase types in the target class (IDEA-155581)

This commit is contained in:
Anna.Kozlova
2016-05-04 20:18:45 +02:00
parent da211b4083
commit 5965c21f44
4 changed files with 52 additions and 7 deletions
@@ -0,0 +1,9 @@
import java.util.*;
class A<T> {
<S extends T, K extends List<List<T>>> <caret>foo(List<? extends T> l1, List<? extends S> l2, List<? extends K> l3, S s, K k, T t) {
Collections.<T>emptyList();
}
}
class B extends A {}
@@ -0,0 +1,10 @@
import java.util.*;
class A<T> {
}
class B extends A {
<S extends Object, K extends List> B(List l1, List<? extends S> l2, List<? extends K> l3, S s, K k, Object t) {
Collections.emptyList();
}
}