zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ca49b6f6b4ffa3ff4324a45501eef98848a2d141 (tree)
parent e6afea99a9642a4fe12b65ef94fee0ee34d7a36b
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Fri, 25 May 2018 00:39:05 -0400

struct fields with no explicit type are not supported

the c++ codebase lets it slide

the self hosted parser correctly reports a parse error

Diffstat:
Mtest/cases/syntax.zig | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git 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 };