new inference: method refs: potentially compatible condition

This commit is contained in:
Anna Kozlova
2014-02-11 14:12:47 +01:00
parent dd66d26554
commit 9466bd9bde
5 changed files with 103 additions and 31 deletions

View File

@@ -118,7 +118,7 @@ class MyTest2 {
call3(MyTest2::m1);
call3<error descr="Ambiguous method call: both 'MyTest2.call3(I1)' and 'MyTest2.call3(I2)' match">(MyTest2::m2)</error>;
call3(MyTest2::m3);
call3<error descr="Cannot resolve method 'call3(<method reference>)'">(MyTest2::m4)</error>;
call3<error descr="'call3(MyTest2.I2)' in 'MyTest2' cannot be applied to '(<method reference>)'">(MyTest2::m4)</error>;
}
}