mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
block lambda -> exp lambda: more accurate check for conflict (IDEA-129780)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Replace with expression lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
a(() -> new Object(){});
|
||||
}
|
||||
|
||||
void a(Supplier<Object> s) {}
|
||||
void a(AI<Object> s) {}
|
||||
|
||||
interface AI<K> {
|
||||
void m();
|
||||
}
|
||||
interface Supplier<T> {
|
||||
T get();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Replace with expression lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
a(() -> {
|
||||
ret<caret>urn new Object(){};
|
||||
});
|
||||
}
|
||||
|
||||
void a(Supplier<Object> s) {}
|
||||
void a(AI<Object> s) {}
|
||||
|
||||
interface AI<K> {
|
||||
void m();
|
||||
}
|
||||
interface Supplier<T> {
|
||||
T get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user