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:
Anna.Kozlova
2017-03-15 20:05:16 +01:00
parent 02d25ac5f6
commit d688a9a7a4
3 changed files with 23 additions and 1 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}