From 5081ea1a0c2469ed77531a6a6718a9de86f1d140 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 15 Jun 2018 19:59:35 +0100 Subject: Fix type aliasing comparison; Fix gb_utf8_decode --- src/check_decl.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index b23ab2b74..9580af157 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -248,16 +248,6 @@ void check_type_decl(CheckerContext *ctx, Entity *e, AstNode *type_expr, Type *d named->Named.base = bt; e->TypeName.is_type_alias = true; } - // if (is_alias) { - // if (is_type_named(bt)) { - // e->type = bt; - // e->TypeName.is_type_alias = true; - // } else { - // gbString str = type_to_string(bt); - // error(type_expr, "Type alias declaration with a non-named type '%s'", str); - // gb_string_free(str); - // } - // } } -- cgit v1.2.3