commit 08f95d0c2fac127558c84f7dfb469ac43fb4f425 (tree)
parent dfc3e11748615f10cf6958c61a934ef852b5aa94
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Fri, 25 May 2018 01:10:54 -0400
enum fields with a type are not supported
the c++ codebase lets it slide
the self hosted parser correctly reports a parse error
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/test/cases/syntax.zig b/test/cases/syntax.zig
@@ -5,7 +5,6 @@ const struct_no_comma = struct { x: i32, y: i32 };
const struct_fn_no_comma = struct { fn m() void {} y: i32 };
const enum_no_comma = enum { A, B };
-const enum_no_comma_type = enum { A, B: i32 };
fn container_init() void {
const S = struct { x: i32, y: i32 };