aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-10-13 14:07:00 +0100
committergingerBill <bill@gingerbill.org>2018-10-13 14:07:00 +0100
commitef2931d4a5f6e5a68ed339dcaf49840e1bcb8863 (patch)
tree275586c077d507eca5dd1db76458c6a43b4bfc35 /src/checker.cpp
parent2d4aa2be6d6f8f335c4239b9c2867729135e373f (diff)
Remove AstTypeType
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 97f7bf4e8..61910f959 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2150,8 +2150,7 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) {
d->attributes = vd->attributes;
- if (is_ast_type(init) ||
- (vd->type != nullptr && vd->type->kind == Ast_TypeType)) {
+ 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");