do not report unrelated return type error only for generics methods

This commit is contained in:
Anna Kozlova
2014-04-17 14:43:40 +02:00
parent 76a9293609
commit 4a34bd569b
3 changed files with 15 additions and 1 deletions

View File

@@ -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> {}
}