Browse Source

Fix typos `#type_alias`

gingerBill 7 years ago
parent
commit
c1728914c6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/check_expr.cpp
  2. 1 1
      src/check_type.cpp

+ 1 - 1
src/check_expr.cpp

@@ -6256,7 +6256,7 @@ gbString write_expr_to_string(gbString str, AstNode *node) {
 	case_end;
 	case_end;
 
 
 	case_ast_node(ht, AliasType, node);
 	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);
 		str = write_expr_to_string(str, ht->type);
 	case_end;
 	case_end;
 
 

+ 1 - 1
src/check_type.cpp

@@ -1964,7 +1964,7 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type)
 	case_end;
 	case_end;
 
 
 	case_ast_node(at, AliasType, e);
 	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
 		// NOTE(bill): Treat it as a HelperType to remove errors
 		return check_type_internal(c, at->type, type, named_type);
 		return check_type_internal(c, at->type, type, named_type);
 	case_end;
 	case_end;