introduce variable: suggest method reference expression (IDEA-102852)

This commit is contained in:
anna
2013-03-11 14:53:34 +01:00
parent 5f0b7626de
commit baa13dac16
4 changed files with 25 additions and 3 deletions
@@ -0,0 +1,9 @@
class Foo {
interface I {
Integer[] _(int p);
}
void test() {
I m = Integer[]::new;
I i = m;
}
}
@@ -0,0 +1,8 @@
class Foo {
interface I {
Integer[] _(int p);
}
void test() {
I i = Integer[]:<caret>:new;
}
}