predict functional type in assignment context (IDEA-199264)

This commit is contained in:
Anna.Kozlova
2019-01-07 18:45:43 +01:00
parent d7e14d75df
commit 55820ccd15
3 changed files with 39 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
// "Create local variable 'foo'" "true"
class Foo {
{
A foo = (s, s1) -> {
};
}
}
@FunctionalInterface
interface A {
void m(String s, String s1);
}

View File

@@ -0,0 +1,10 @@
// "Create local variable 'foo'" "true"
class Foo {
{
f<caret>oo = (s, s1) -> {};
}
}
@FunctionalInterface
interface A {
void m(String s, String s1);
}