master
1comptime {
2 const tile = Tile.Empty;
3 switch (tile.*) {
4 Tile.Empty => {},
5 Tile.Filled => {},
6 }
7}
8const Tile = enum {
9 Empty,
10 Filled,
11};
12
13// error
14//
15// :3:17: error: cannot dereference non-pointer type 'tmp.Tile'
16// :8:14: note: enum declared here