mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 22:11:40 +07:00
method refs: compilation error when static method is accept through instance reference
This commit is contained in:
@@ -68,7 +68,7 @@ class MyTest3 {
|
||||
static void m() { }
|
||||
|
||||
public static void main(String[] args) {
|
||||
I s = new MyTest3()::m;
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest3.I'">I s = new MyTest3()::m;</error>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user