mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ambiguous method calls: conflict resolver, tests
(IDEA-67919; IDEA-67863; IDEA-67920; IDEA-67831; IDEA-67833; IDEA-67674; IDEA-67587; IDEA-57646; IDEA-57407; IDEA-57279; IDEA-57296; IDEA-57297; IDEA-57316; IDEA-57331)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
package pck;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static pck.C.foo;
|
||||
import static pck.D.foo;
|
||||
|
||||
class C {
|
||||
static <T> void foo(List<T> x) { }
|
||||
}
|
||||
|
||||
class D {
|
||||
static <T> String foo(List<T[]> x) { return null; }
|
||||
}
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args){
|
||||
List<String[]> x = null;
|
||||
foo(x).toLowerCase();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user