accept inline on method reference (IDEA-102845)

This commit is contained in:
anna
2013-03-11 14:53:33 +01:00
parent f6806ebdf0
commit 5f0b7626de
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,11 @@
class Foo {
interface Jjj {
int[] jjj(int p);
}
void useJjj(Jjj p) {
p.jjj(9);
}
void test() {
use<caret>Jjj(int[]::new);
}
}
@@ -0,0 +1,11 @@
class Foo {
interface Jjj {
int[] jjj(int p);
}
void useJjj(Jjj p) {
p.jjj(9);
}
void test() {
((Jjj) int[]::new).jjj(9);
}
}