Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AmbiguousMethodCallIDEA67671.java
2013-04-30 18:12:21 +02:00

13 lines
367 B
Java

import java.util.Collection;
import java.util.List;
interface A
{
<S extends Collection<?> & List<?>> void foo(S x);
}
<error descr="Class 'B' must either be declared abstract or implement abstract method 'foo(S)' in 'A'">class B implements A</error>
{
public void foo(Collection<?> x) { }
public <S extends List<?> & Collection<?>> void foo(S x) { }
}