class TestInExpression { void foo(Object x) { if (x instanceof A || x instanceof B) { } } }