mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
do not report unrelated return type error only for generics methods
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
interface A {
|
||||
Iterable<Integer> m(List ls);
|
||||
}
|
||||
|
||||
interface B {
|
||||
Iterable<String> m(List l);
|
||||
}
|
||||
|
||||
<error descr="'m(List)' in 'Test.B' clashes with 'm(List)' in 'Test.A'; methods have unrelated return types">interface AB extends A, B</error> {}
|
||||
}
|
||||
Reference in New Issue
Block a user