mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
lambda: don't reject value compatibility for lambdas with control flow problems inside (IDEA-142107)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
public static void processDifference(final Stream<String> stream, final Stream<String> cells) {
|
||||
stream.map(rule -> {
|
||||
try {
|
||||
return cells.collect(Collectors.toMap(c -> c, null));
|
||||
} finally {
|
||||
System.out.println(<error descr="')' expected"><error descr="Expression expected">;</error></error><error descr="Unexpected token">)</error>;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user