Skip to content

Commit ca49b6f

Browse files
committed
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 parent e6afea9 commit ca49b6f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/cases/syntax.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const struct_trailing_comma = struct { x: i32, y: i32, };
44
const struct_no_comma = struct { x: i32, y: i32 };
5-
const struct_no_comma_void_type = struct { x: i32, y };
65
const struct_fn_no_comma = struct { fn m() void {} y: i32 };
76

87
const enum_no_comma = enum { A, B };

0 commit comments

Comments
 (0)