class Foo { foo() { switch (1) { case (MatrixType.IsScaling | MatrixType.IsTranslation): } } bar() { switch ((typeA << 4) | typeB) {} } }