commit 4c558be6ac492d4062088a9d2e0c59203a226b26
parent 8be4df190115c977077b4404c2305dfefcbc7ae3
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 22 Aug 2021 12:13:57 +0200
hare::types: s/alias._type/alias.secondary/g
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hare/types/lookup.ha b/hare/types/lookup.ha
@@ -4,8 +4,8 @@ use hare::ast;
export fn dealias(t: *_type) const *_type = {
for (true) match (t._type) {
a: alias => {
- assert(a._type != null);
- t = a._type: const *_type;
+ assert(a.secondary != null);
+ t = a.secondary: const *_type;
},
* => break,
};
diff --git a/hare/types/store.ha b/hare/types/store.ha
@@ -89,7 +89,7 @@ fn fromast(store: *typestore, atype: *ast::_type) (_type | deferred | error) = {
assert(!a.unwrap);
alias {
id = ast::ident_dup(a.ident),
- _type = null,
+ secondary = null,
};
},
// TODO: Tuple unpacking could improve this
diff --git a/hare/types/types.ha b/hare/types/types.ha
@@ -4,7 +4,7 @@ use hare::ast;
export type alias = struct {
id: ast::ident,
// null for forward referenced types
- _type: const nullable *_type,
+ secondary: const nullable *_type,
};
// An array type, e.g. [10]int