mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
predict functional type in assignment context (IDEA-199264)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
{
|
||||
A foo = (s, s1) -> {
|
||||
};
|
||||
}
|
||||
}
|
||||
@FunctionalInterface
|
||||
interface A {
|
||||
void m(String s, String s1);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user