method refs: accept 2 phase acceptance (static and receiver based), raise 'staticAccess' errors at highlighting level

This commit is contained in:
Anna Kozlova
2013-08-30 12:53:02 +04:00
parent 8cb40bfdac
commit 75847497e5
16 changed files with 185 additions and 104 deletions

View File

@@ -68,7 +68,7 @@ class MyTest3 {
static void m() { }
public static void main(String[] args) {
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest3.I'">I s = new MyTest3()::m;</error>
I s = <error descr="Static method referenced through non-static qualifier">new MyTest3()::m</error>;
}
}