aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs195/switch/HelloWorldEnumSwitch.java
blob: 59c2f58c1416ac284747427c19782f56693cade3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class HelloWorldEnumSwitch {

	public static void main(String[] args) {
		switch(TestEnum.A) {
			case A:
				System.out.println("A");
				break;
			case B:
				System.out.println("B");
		}

	}

	public static enum TestEnum {
		A,
		B;

		private TestEnum() {
		}
	}
}