summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2013-08-09 11:23:59 -0700
committerTor Norbye <tnorbye@google.com>2013-08-09 11:23:59 -0700
commit10605ee04b8297b2f9f2d90aa91d73bc669ce891 (patch)
treede8a2f44bdd9e0969b79431cfba64a9036d69681 /java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java
parent3361ba4955436eee16e16e1f0ae0c20c98d35c45 (diff)
parent9fdfa377b20b105e3a9907d32434787f75781c35 (diff)
downloadidea-10605ee04b8297b2f9f2d90aa91d73bc669ce891.tar.gz
Merge remote-tracking branch 'aosp/snapshot-master' into merge
Diffstat (limited to 'java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java')
-rw-r--r--java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java
new file mode 100644
index 000000000000..ab7d8cf9cc2d
--- /dev/null
+++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67865.java
@@ -0,0 +1,11 @@
+import java.util.*;
+
+abstract class A {
+ static <T> void foo(List<T> x) { }
+ static <T extends List<?>> void foo(Collection<T> x) { }
+ public static void main(String[] args){
+ List<List<String>> x = null;
+ foo<error descr="Ambiguous method call: both 'A.foo(List<List<String>>)' and 'A.foo(Collection<List<String>>)' match">(x)</error>;
+ foo<error descr="Ambiguous method call: both 'A.foo(List<Object>)' and 'A.foo(Collection<List<?>>)' match">(null)</error>;
+ }
+}