Fix type alias declaration evaluation problem (#854 #1439)

This commit is contained in:
gingerBill
2022-02-03 13:34:31 +00:00
parent df8bdac33f
commit 35c90fe124
3 changed files with 137 additions and 18 deletions
-3
View File
@@ -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");