From ca49b6f6b4ffa3ff4324a45501eef98848a2d141 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 25 May 2018 00:39:05 -0400 Subject: [PATCH] struct fields with no explicit 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 6c851c0ff3..140a86d5c1 100644 --- a/test/cases/syntax.zig +++ b/test/cases/syntax.zig @@ -2,7 +2,6 @@ const struct_trailing_comma = struct { x: i32, y: i32, }; const struct_no_comma = struct { x: i32, y: i32 }; -const struct_no_comma_void_type = struct { x: i32, y }; const struct_fn_no_comma = struct { fn m() void {} y: i32 }; const enum_no_comma = enum { A, B };