summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AmbiguousMethodCallIDEA67669.java
blob: ed1f8df47c6f68800641fb52d79c2731d2ef6212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.util.Collection;
import java.util.List;

interface A
{
    <S extends Collection<?> & List<?>> void foo(S x);
    <S extends List> String foo(S x);
}


class B
{
    public static void main(String[] args) {
        A a = null;
        char c = a.foo(null).<error descr="Cannot resolve method 'charAt(int)'">charAt</error>(0);
    }
}