mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
Introduce method reference type; mute type check for it
This commit is contained in:
+3
-1
@@ -19,8 +19,10 @@ class C {
|
||||
void m();
|
||||
}
|
||||
void simplest() { }
|
||||
void use(Simplest s) { }
|
||||
|
||||
void test() {
|
||||
<error descr="Incompatible types. Found: 'null', required: 'C.Simplest'">Simplest simplest = this::simplest;</error>
|
||||
Simplest simplest = <weak_warning descr="Method references type check is not yet implemented">this::simplest</weak_warning>;
|
||||
use(<weak_warning descr="Method references type check is not yet implemented">this::simplest</weak_warning>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user