mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
testdata for IDEA-78402
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
class Reference<T> {}
|
||||
|
||||
class Bug {
|
||||
private static <T> void foo(List<T> x, Reference<String> y) {
|
||||
System.out.println(x);
|
||||
}
|
||||
|
||||
private static <T> void foo(Collection<T> x, Reference<T> y) {
|
||||
System.out.println(x);
|
||||
}
|
||||
|
||||
public static void bazz(List<String> bar) {
|
||||
foo<error descr="Ambiguous method call: both 'Bug.foo(List<String>, Reference<String>)' and 'Bug.foo(Collection<String>, Reference<String>)' match">(bar, null)</error>;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
class Reference<T> {}
|
||||
|
||||
class Bug {
|
||||
private static <T> void foo(List<T> x, Reference<String> y) {
|
||||
System.out.println(x);
|
||||
}
|
||||
|
||||
private static <T> void foo(Collection<T> x, Reference<T> y) {
|
||||
System.out.println(x);
|
||||
}
|
||||
|
||||
public static void bazz(List<String> bar) {
|
||||
foo<error descr="Ambiguous method call: both 'Bug.foo(List<String>, Reference<String>)' and 'Bug.foo(Collection<String>, Reference<String>)' match">(bar, null)</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user