mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
10 lines
218 B
Java
10 lines
218 B
Java
// "Add missing nested patterns" "true-preview"
|
|
class Main {
|
|
void foo(Rec<String, Number> obj) {
|
|
if (obj instanceof Rec<String, Number>(var x, var y)) {
|
|
}
|
|
}
|
|
|
|
record Rec<T, U>(T x, U y) {}
|
|
}
|