enum Foo { FOO, BAR } class Main { { Foo a; Foo b; switch (a) { case FOO: b = Foo.BAR;<caret> } } }