lambda -> method ref: reject anonymous class replacement (IDEA-124748)

This commit is contained in:
Anna Kozlova
2014-05-05 15:08:43 +04:00
parent dc73135a77
commit a2a076c02a
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
// "Replace lambda with method reference" "false"
class NonStaticInner3 {
class Foo {
public Foo() {
}
}
interface I1<X> {
X m();
}
{
I1<Foo> b2 = () -> <caret>new Foo(){};
}
}