]> Nishi Git Mirror - gwion.git/commitdiff
:art: more array_base_simple
authorJérémie Astor <fennecdjay@gmail.com>
Wed, 11 Aug 2021 06:57:46 +0000 (08:57 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Wed, 11 Aug 2021 06:57:46 +0000 (08:57 +0200)
src/parse/template.c

index 52d9f153712c5f8dd81342edcbf8ae8aea8fecf7..7e8f3eebf9bd13f091b9bbe1a6d922a43f62f422 100644 (file)
@@ -139,7 +139,7 @@ ANN Type scan_type(const Env env, const Type t, Type_Decl *td) {
     Type_Decl *next        = td->next;
     td->next               = NULL;
     const Type maybe_array = known_type(env, td);
-    const Type owner       = array_base(maybe_array);
+    const Type owner       = array_base_simple(maybe_array);
     td->next               = next;
     CHECK_OO(owner);
     if (!owner->nspc) ERR_O(td->pos, "type '%s' has no namespace", owner->name)