Zig Version
0.14.1
Steps to Reproduce and Observed Behavior
const TestEnum = enum {
foo,
bar,
};
fn x(t: TestEnum) void {
sw: switch (t) {
.foo => {},
inline else => |_| {
continue :sw .foo;
},
}
}
pub fn main() !void {
x(.bar);
}
Compile error while building:
src/main.zig:9:17: error: expected pointer, found 'type'
sw: switch (t) {
^
Expected Behavior
No compile errors, no runtime errors