diff options
| author | gingerBill <bill@gingerbill.org> | 2017-12-11 11:13:22 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-12-11 11:13:22 +0000 |
| commit | fd1f6ec75cf7e26e2e87f84885e4166cd25cf376 (patch) | |
| tree | 1319b0062ede56866e0394f7b76ba5fa8f281d1c | |
| parent | 3aea08df7869f39c12a4d787be25306944d68e70 (diff) | |
| parent | 6b0d7cb26c85627b7a60967c2bb4fe6612688774 (diff) | |
Merge branch 'master' into explicit-overloading
| -rw-r--r-- | src/check_type.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 7153bbfa1..d1552a965 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -357,12 +357,6 @@ Array<Entity *> check_struct_fields(Checker *c, AstNode *node, Array<AstNode *> } type = t_invalid; } - if (is_type_empty_union(type)) { - gbString str = type_to_string(type); - error(params[i], "Invalid use of an empty union '%s'", str); - gb_string_free(str); - type = t_invalid; - } bool is_using = (p->flags&FieldFlag_using) != 0; |