mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
try to infer types before check for applicability (IDEA-68986)
(cherry picked from commit d8bbd5c1b70135cd1eee5215dd2bffaf6d16e905)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// "Static Import Method..." "true"
|
||||
package p;
|
||||
|
||||
import static p.FFF.myEqualTo;
|
||||
|
||||
public class X {
|
||||
public void test() throws Exception {
|
||||
assertMe("", myEqualTo(""));
|
||||
}
|
||||
|
||||
<V> void assertMe(V v, M<V> m) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class M<T> {
|
||||
}
|
||||
|
||||
class FFF {
|
||||
public static <T> M<T> myEqualTo(T operand) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class LLL {
|
||||
public static M<String> myEqualTo(String string) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user