new overload resolution: most specific check on invalid class exceptions fixed

This commit is contained in:
Anna Kozlova
2014-04-22 20:02:32 +02:00
parent 552dfe92a9
commit 98ab76f060
3 changed files with 18 additions and 2 deletions
@@ -0,0 +1,12 @@
class Test {
interface I { Object in<EOLError descr="';' expected"></EOLError>
<error descr="Invalid method declaration; return type required">voke</error>(); }
interface IStr { String foo(); }
public static void call(IStr str) {}
public static void call(I i) { }
public static void main(String[] args) {
call<error descr="Ambiguous method call: both 'Test.call(IStr)' and 'Test.call(I)' match">(()-> null)</error>;
}
}