mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
new inference: cache substitutor for outer call conflict resolution
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user