From e25c72ecddcf12c82aac439ad3fdc58629379765 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 14 May 2018 17:05:52 +0100 Subject: Fix #219 and #220 --- src/check_type.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 81a3ce03e..7d6582ece 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1931,7 +1931,8 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type) Scope *s = c->context.scope; Scope *entity_scope = s; if (ps != nullptr && ps != s) { - GB_ASSERT(is_scope_an_ancestor(ps, s) >= 0); + // TODO(bill): Is this check needed? + // GB_ASSERT_MSG(is_scope_an_ancestor(ps, s) >= 0); entity_scope = ps; } Entity *e = alloc_entity_type_name(entity_scope, token, t); -- cgit v1.2.3