substitute type parameter bounds with current substitution when method signatures in the hierarchy are checked (IDEA-159801)

This commit is contained in:
Anna Kozlova
2016-09-15 18:35:33 +03:00
parent 596430d19c
commit 92e17eed9c
5 changed files with 80 additions and 44 deletions
@@ -0,0 +1,12 @@
import java.util.List;
interface A {
String save(String world);
}
interface Test2 extends A, CR<String> {}
interface Test1 extends CR<String>, A {}
interface CR<T> {
<S extends T> S save(S var1);
<S extends T> List<S> save(Iterable<S> var1);
}