mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java-intentions] SplitFilterAction: add test for record patterns
IJ-CR-94735 GitOrigin-RevId: 81dd336174b6ebe4908a3df717ab2d8200c788ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
68b1bcc2bb
commit
8c63208047
@@ -0,0 +1,11 @@
|
||||
// "Split into filter chain" "false"
|
||||
import java.util.List;
|
||||
|
||||
class X {
|
||||
void test(List<?> points) {
|
||||
points.stream().filter(p -> p instanceof Point(double x, double y) &<caret>& x > y).filter(p -> p.hashCode() > 0).forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
|
||||
record Point(double x, double y) {
|
||||
}
|
||||
Reference in New Issue
Block a user