Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA57317/pck/AmbiguousMethodCall.java
T
anna d8748bb076 ambiguous method calls: conflict resolver, tests
(IDEA-67832; IDEA-67837; IDEA-67573; IDEA-57306;
 IDEA-57535; IDEA-57269; IDEA-57278; IDEA-57317)
2012-04-09 11:57:27 +02:00

12 lines
314 B
Java

package pck;
class B<K> {}
class A<K> extends B<K> {
void foo(A<A<String>> b){
bar<error descr="Ambiguous method call: both 'A.bar(B<? extends A<String>>)' and 'A.bar(A<? extends B<String>>)' match">(b)</error>;
}
<T> void bar(B<? extends A<T>> a){}
<T> void bar(A<? extends B<T>> a){}
}