[java] skip plain cannot infer diamond error (IDEA-283409); add ambiguous constructor call (IDEA-272115)

this unifies error messages with method calls and allows more specific tooltips and additional fixes

GitOrigin-RevId: 5ab4340d822bba3d6563da12a16e4c41216a8627
This commit is contained in:
Anna Kozlova
2021-11-29 19:27:48 +00:00
committed by intellij-monorepo-bot
parent 10f7715893
commit e6165048e8
13 changed files with 185 additions and 35 deletions
@@ -0,0 +1,6 @@
class A<R>{
A(R value) {}
public static void main(String[] args) {
A<Integer> a = new A<><error descr="'A(R)' in 'A' cannot be applied to '(java.lang.String, int)'" tooltip="Expected 1 arguments but found 2">("hi", 1)</error>;
}
}