add a TODO compile error for union field alignment syntax

See #3125
This commit is contained in:
Andrew Kelley 2019-08-27 10:45:15 -04:00
parent ffac0b02e7
commit 7d34e55a71
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -1965,6 +1965,8 @@ static Error resolve_union_alignment(CodeGen *g, ZigType *union_type) {
union_type->data.unionation.resolve_status = ResolveStatusInvalid;
return err;
}
add_node_error(g, field->decl_node,
buf_create_from_str("TODO implement field alignment syntax for unions. https://github.com/ziglang/zig/issues/3125"));
} else if (packed) {
field->align = 1;
} else if (field->type_entry != nullptr) {