Skip to content

Commit 08f95d0

Browse files
committed
enum fields with a type are not supported
the c++ codebase lets it slide the self hosted parser correctly reports a parse error
1 parent dfc3e11 commit 08f95d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/cases/syntax.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const struct_no_comma = struct { x: i32, y: i32 };
55
const struct_fn_no_comma = struct { fn m() void {} y: i32 };
66

77
const enum_no_comma = enum { A, B };
8-
const enum_no_comma_type = enum { A, B: i32 };
98

109
fn container_init() void {
1110
const S = struct { x: i32, y: i32 };

0 commit comments

Comments
 (0)