mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
fix inference for object type arg
This commit is contained in:
+11
@@ -12,4 +12,15 @@ class Test {
|
||||
static <E> E foo(Class<? super E> value) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Comp {
|
||||
public static <T> boolean equal(T arg1, T arg2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void foo(String s, Object o) {
|
||||
if (equal(s, o)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user