try to infer types before check for applicability (IDEA-68986)

(cherry picked from commit d8bbd5c1b70135cd1eee5215dd2bffaf6d16e905)
This commit is contained in:
anna
2011-12-05 21:15:36 +01:00
parent dbd9aa0bda
commit 99f4b3a821
3 changed files with 67 additions and 1 deletions

View File

@@ -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;
}
}