Use resolveImaginarySuperCallInThisPlace() instead of enumerating all super class constructors; find usages of overloaded ctr should find only correct implicit super calls

This commit is contained in:
Alexey Kudravtsev
2016-09-01 16:59:57 +03:00
parent b5ab580b0b
commit 0798a43f7d
6 changed files with 81 additions and 51 deletions
@@ -17,12 +17,3 @@ class B1 extends A1 {
}
class C1 extends A1 {}
class A2 {
A2(int... i){}
A2(Object... i){}
}
class B2 extends A2 {
<error descr="Ambiguous method call: both 'A2.A2(int...)' and 'A2.A2(Object...)' match">public B2()</error> {
}
}
<error descr="Ambiguous method call: both 'A2.A2(int...)' and 'A2.A2(Object...)' match">class C2 extends A2</error> {}