mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
ensure potential compatible for pertinent to applicability: when number of parameters is wrong methods which are not potentially compatible are not filtered (IDEA-149103)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
class Test {
|
||||
public <T> void varargs(int i, String... p1) { }
|
||||
public <T> void usage(String p1) { }
|
||||
{
|
||||
varargs<error descr="Cannot resolve method 'varargs()'">()</error>;
|
||||
varargs(1);
|
||||
varargs(1, "");
|
||||
varargs(1, "", "");
|
||||
usage<error descr="'usage(java.lang.String)' in 'Test' cannot be applied to '()'">()</error>;
|
||||
usage("");
|
||||
usage<error descr="'usage(java.lang.String)' in 'Test' cannot be applied to '(java.lang.String, java.lang.String)'">("", "")</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user