method refs: restore error on invalid array creation

This commit is contained in:
Anna Kozlova committed 2014-02-21 21:47:03 +01:00
1 parent 07de1517e5
commit 0f39a4ca18
3 files changed
+20 -11

No files matched your search

@@ -0,0 +1,11 @@
class Test {
interface I {
Object m();
}
void m(I i) {}
{
m<error descr="'m(Test.I)' in 'Test' cannot be applied to '(<method reference>)'">(String[]::new)</error>;
}
}