[jdk21] Remove test for record patterns in for headers (removed in JEP 440)

This commit is contained in:
Rawi01 committed 2023-06-24 17:00:14 +02:00
1 parent cb76e67205
commit 1c2970be2d
3 files changed
+28 -1

No files matched your search

@@ -0,0 +1,14 @@
// version 21:
record Point(int x, int y) {
}
record Rectangle(Point upperLeft, Point lowerRight) {
}
public class RecordPattern21 {
void recordPattern(Object o) {
if (o instanceof Point(int x, int y)) {
}
if (o instanceof Rectangle(Point(var x1, var y1), Point(int x2, int y2))) {
}
}
}