aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp10
1 files changed, 0 insertions, 10 deletions
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);
- // }
- // }
}