new inference: cache substitutor for outer call conflict resolution

This commit is contained in:
Anna Kozlova
2014-03-07 14:09:39 +01:00
parent a5adf26660
commit dccb826526
9 changed files with 164 additions and 74 deletions

View File

@@ -0,0 +1,23 @@
import java.util.*;
class Test {
void m(Runnable p) { }
void m(List<Runnable> p) { }
{
m(foo());
m<error descr="Cannot resolve method 'm(java.lang.Object)'">(bar())</error>;
}
<T> List<T> foo() {
return null;
}
<T> T bar() {
return null;
}
}