mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
lambda -> method ref: reject anonymous class replacement (IDEA-124748)
This commit is contained in:
@@ -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(){};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user