method refs: rename methods

This commit is contained in:
anna
2012-10-05 11:11:06 +02:00
parent 21be923dc9
commit 30feb7255d
4 changed files with 54 additions and 0 deletions
@@ -0,0 +1,14 @@
class MyTest {
static class Foo {
}
interface I {
Foo m();
}
static Foo f<caret>oo() { return null; }
public static void main(String[] args) {
I i = MyTest::foo;
}
}
@@ -0,0 +1,14 @@
class MyTest {
static class Foo {
}
interface I {
Foo m();
}
static Foo bar() { return null; }
public static void main(String[] args) {
I i = MyTest::bar;
}
}