summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AmbiguousMethodCallIDEA67671.java
blob: f066058520d11f089087ea9fa1ac0f944999f17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) { }
}