java: incompatible varargs tooltip fixed (IDEA-225610)

highlight and show in tooltip only wrong arguments

GitOrigin-RevId: 9ccafd34fc549a84349d10b3cd7e0a233985e450
This commit is contained in:
Anna.Kozlova
2019-11-07 02:40:58 +00:00
committed by intellij-monorepo-bot
parent 1d6b44a098
commit 13680758d9
3 changed files with 42 additions and 9 deletions
@@ -0,0 +1,9 @@
class MyTest {
void processStrings(String... list) {
System.out.println(list);
}
void test() {
processStrings(<error descr="'processStrings(java.lang.String...)' in 'MyTest' cannot be applied to '(int, java.lang.String, java.lang.String)'">1</error>, "str", "s");
}
}