use interface where possible: rebind type params (IDEA-139615)

This commit is contained in:
Anna Kozlova
2015-04-24 20:33:39 +02:00
parent 511a356788
commit 6be67cfec0
4 changed files with 42 additions and 0 deletions
@@ -0,0 +1,9 @@
interface SuperBar<T> {
void f();
}
interface Bar<T, S> extends SuperBar<S> {}
class Client {
void foo(SuperBar<Integer> b) {
b.f();
}
}
@@ -0,0 +1,9 @@
interface SuperBar<T> {
void f();
}
interface Bar<T, S> extends SuperBar<S> {}
class Client {
void foo(Bar<String, Integer> b) {
b.f();
}
}