method refs: inner classes from hierarchy availability

This commit is contained in:
anna
2012-10-01 20:52:38 +02:00
parent 9338554c78
commit b3029c4f46
4 changed files with 35 additions and 2 deletions
@@ -0,0 +1,19 @@
class MyTest {
static class Super {
class Inner {
Inner(int i){}
}
}
static class Child extends Super {
interface I {
Inner m(Child child, int i);
}
void test() {
I var = Child.Inner::new;
}
}
}