fix inference for object type arg

This commit is contained in:
anna
2012-04-05 19:08:45 +02:00
parent 9242d62213
commit 27b6395f89
2 changed files with 12 additions and 1 deletions
@@ -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)) {
}
}
}