const Color = enum { auto, off, on }; test "exhaustive switching" { const color = Color.off; switch (color) { Color.auto => {}, Color.on => {}, } }