Introduce method reference type; mute type check for it

This commit is contained in:
Roman Shevchenko
2012-06-04 12:19:08 +04:00
parent a55a6dd51b
commit bd86a3e9bd
10 changed files with 138 additions and 76 deletions
@@ -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>);
}
}