struct fields with no explicit type are not supported

the c++ codebase lets it slide

the self hosted parser correctly reports a parse error
This commit is contained in:
Andrew Kelley 2018-05-25 00:39:05 -04:00
parent e6afea99a9
commit ca49b6f6b4

View File

@ -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 };