method refs: allow reference parameters before method name

This commit is contained in:
anna
2012-10-02 18:11:16 +02:00
parent 8e9866900a
commit 0e8ade2f40
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class MyTest {
interface I<X> {
X _();
}
static <T> T bar() {return null;}
static {
I i = MyTest::<String>bar;
}
}