From 08f95d0c2fac127558c84f7dfb469ac43fb4f425 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 25 May 2018 01:10:54 -0400 Subject: [PATCH] enum fields with a type are not supported the c++ codebase lets it slide the self hosted parser correctly reports a parse error --- test/cases/syntax.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/test/cases/syntax.zig b/test/cases/syntax.zig index 140a86d5c1..9512834f5a 100644 --- 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 };