method refs: filter more specific

This commit is contained in:
anna
2012-10-02 17:57:02 +02:00
parent 340ebdccdb
commit 9c796a4342
7 changed files with 189 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class MyTest2 {
static void call(Integer i, I s) { }
static void test() {
call<error descr="Cannot resolve method 'call(int, <method reference>)'">(1, MyTest2::m)</error>; //ambiguous
call<error descr="Ambiguous method call: both 'MyTest2.call(int, I)' and 'MyTest2.call(Integer, I)' match">(1, MyTest2::m)</error>; //ambiguous
}
}