mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
use interface where possible: rebind type params (IDEA-139615)
This commit is contained in:
+9
@@ -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();
|
||||
}
|
||||
}
|
||||
+9
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user