mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
method hierarchy: don't merge methods with return types which are not substitutable (IDEA-57393)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
interface I<T, S extends Throwable> {
|
||||
int foo(T x);
|
||||
void foo(S x);
|
||||
}
|
||||
|
||||
class A implements I<Throwable, Throwable>{
|
||||
public <error descr="'foo(Throwable)' in 'A' clashes with 'foo(T)' in 'I'; attempting to use incompatible return type">void</error> foo(Throwable x) { }
|
||||
}
|
||||
Reference in New Issue
Block a user