mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
inherit unrelated concrete methods with same signature error (IDEA-67838)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
class A<T> {
|
||||
public void foo(T t){}
|
||||
}
|
||||
|
||||
class B<K> extends A<K> {
|
||||
public void foo(String s) {}
|
||||
}
|
||||
class <error descr="Methods foo(String) from B and foo(T) from A are inherited with the same signature">C</error> extends B<String> {}
|
||||
|
||||
class D<T> {
|
||||
public void foo(T t){}
|
||||
public void foo(String s) {}
|
||||
}
|
||||
|
||||
class <error descr="Methods foo(T) from D and foo(String) from D are inherited with the same signature">E</error> extends D<String> {}
|
||||
class F extends D<String> {
|
||||
public void foo(String s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user