mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
guess expected type like for completion if on the left side of assignment to functional expression which provides in this case no expected type (IDEA-169382)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Create local variable 'lf'" "true"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Main2 {
|
||||
void f(Function<String, String> g) {}
|
||||
{
|
||||
Function<String, String> lf;
|
||||
f(lf = c -> c);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create local variable 'lf'" "true"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Main2 {
|
||||
void f(Function<String, String> g) {}
|
||||
{
|
||||
f(l<caret>f = c -> c);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user