move inference error from element to method candidate to avoid overload method pollution; show inference error in the editor if applicability check was successful; register inference error if variable has incompatible upper bounds (IDEA-145106)

This commit is contained in:
Anna Kozlova
2015-11-16 10:05:50 +01:00
parent 445f4407fc
commit fcf8e6f373
8 changed files with 151 additions and 95 deletions
@@ -0,0 +1,14 @@
class Test {
public void testConsume() {
consume(exception());
}
public static void consume(Throwable t) {}
public static void consume(String s) {}
public static <E extends Exception> E exception() {
return null;
}
}