aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-04 21:34:45 +0000
committergingerBill <bill@gingerbill.org>2018-02-04 21:34:45 +0000
commitc1728914c63b18d52c03399fa8f90e00d454d39c (patch)
tree7dacf8f42d71ade04a3b18bf5e903cc0f124df61
parented2f49e8d2f91c1eed1c597946407039d0524465 (diff)
Fix typos `#type_alias`
-rw-r--r--src/check_expr.cpp2
-rw-r--r--src/check_type.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 9b25f2655..0f874f5cd 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -6256,7 +6256,7 @@ gbString write_expr_to_string(gbString str, AstNode *node) {
case_end;
case_ast_node(ht, AliasType, node);
- str = gb_string_appendc(str, "#alias ");
+ str = gb_string_appendc(str, "#type_alias ");
str = write_expr_to_string(str, ht->type);
case_end;
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 4beb88bdb..167b55c75 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1964,7 +1964,7 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type)
case_end;
case_ast_node(at, AliasType, e);
- error(e, "Invalid use of '#alias'");
+ error(e, "Invalid use of '#type_alias'");
// NOTE(bill): Treat it as a HelperType to remove errors
return check_type_internal(c, at->type, type, named_type);
case_end;