class X { record A(long l){} void test(Object obj) { if(obj instanceof A(int i)) { } } }