// "Add missing nested patterns" "true-preview" class Main { void foo(Rec obj) { if (obj instanceof Rec()) { } } record Rec(T x, U y) {} }