mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
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:
+14
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user