Skip to content

Commit

Permalink
struct fields with no explicit type are not supported
Browse files Browse the repository at this point in the history
the c++ codebase lets it slide

the self hosted parser correctly reports a parse error
  • Loading branch information
andrewrk committed May 25, 2018
1 parent e6afea9 commit ca49b6f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/cases/syntax.zig
Expand Up @@ -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 };
Expand Down

0 comments on commit ca49b6f

Please sign in to comment.