mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
suggest correctly shaped functional types if extracting functional expression without context: initial (IDEA-125510)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
Runnable l = () -> {
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
<selection>() -> {}</selection>;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import java.util.function.IntConsumer;
|
||||
|
||||
class Foo {
|
||||
void test() {
|
||||
IntConsumer l = System::exit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
<selection>System::exit</selection>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user