authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-25 00:39:05-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-25 00:39:18-04:00
logca49b6f6b4ffa3ff4324a45501eef98848a2d141
tree20ce57aa235c688e9be4032497208877edd7cb29
parente6afea99a9642a4fe12b65ef94fee0ee34d7a36b

struct fields with no explicit type are not supported

the c++ codebase lets it slide the self hosted parser correctly reports a parse error

1 files changed, 0 insertions(+), 1 deletions(-)

test/cases/syntax.zig-1
......@@ -2,7 +2,6 @@
22
33const struct_trailing_comma = struct { x: i32, y: i32, };
44const struct_no_comma = struct { x: i32, y: i32 };
5const struct_no_comma_void_type = struct { x: i32, y };
65const struct_fn_no_comma = struct { fn m() void {} y: i32 };
76
87const enum_no_comma = enum { A, B };