method refs: ambiguity with method refs inside

This commit is contained in:
anna
2012-10-01 20:49:07 +02:00
parent cb42e24da7
commit bd1f035718
4 changed files with 37 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ class MyTest {
{
Bar1 b1 = MyTest :: foo;
bar<error descr="Cannot resolve method 'bar(<method reference>)'">(MyTest :: foo)</error>;
bar<error descr="Ambiguous method call: both 'MyTest.bar(Bar1)' and 'MyTest.bar(Bar2)' match">(MyTest :: foo)</error>;
}
}