diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-03 13:34:31 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-03 13:34:31 +0000 |
| commit | 35c90fe12413335962cad02d77a4894079b00a5d (patch) | |
| tree | 241471daca146a25de37e8269b81f43eaf9ddde1 /src/checker.cpp | |
| parent | df8bdac33f9c8333db64516f27b3c2b727ff7d2b (diff) | |
Fix type alias declaration evaluation problem (#854 #1439)
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 4dcb5120f..c4423b2bc 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -3563,9 +3563,6 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) { if (is_ast_type(init)) { e = alloc_entity_type_name(d->scope, token, nullptr); - // if (vd->type != nullptr) { - // error(name, "A type declaration cannot have an type parameter"); - // } } else if (init->kind == Ast_ProcLit) { if (c->scope->flags&ScopeFlag_Type) { error(name, "Procedure declarations are not allowed within a struct"); |