Remove check on array/slice/dynamic element size

This commit is contained in:
Ginger Bill
2017-05-02 20:17:53 +01:00
parent 19bde275a3
commit 206a3e093c
5 changed files with 56 additions and 32 deletions
+2 -1
View File
@@ -127,7 +127,8 @@ void check_init_constant(Checker *c, Entity *e, Operand *operand) {
void check_type_decl(Checker *c, Entity *e, AstNode *type_expr, Type *def) {
GB_ASSERT(e->type == NULL);
Type *named = make_type_named(c->allocator, e->token.string, NULL, e);
String name = e->token.string;
Type *named = make_type_named(c->allocator, name, NULL, e);
named->Named.type_name = e;
if (def != NULL && def->kind == Type_Named) {
def->Named.base = named;