diff options
| author | Mikkel Hjortshoej <hoej@northwolfprod.com> | 2018-02-07 21:23:28 +0100 |
|---|---|---|
| committer | Mikkel Hjortshoej <hoej@northwolfprod.com> | 2018-02-07 21:23:28 +0100 |
| commit | 4c06b443154bcb85982d61f39badbab901ac4da8 (patch) | |
| tree | aae84649c8ff4b5a1ceef325fdb538086e6a6758 /src/check_type.cpp | |
| parent | 678b58e0b18d7328fa7d302324dbac1d681aefea (diff) | |
| parent | 8f913c656ce0ecdf68f53d571c287b826467002e (diff) | |
Merge branch 'master' of github.com:odin-lang/odin
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 167b55c75..3252c8bf6 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1963,10 +1963,10 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type) return check_type_internal(c, ht->type, type, named_type); case_end; - case_ast_node(at, AliasType, e); - error(e, "Invalid use of '#type_alias'"); + case_ast_node(dt, DistinctType, e); + error(e, "Invalid use of a distinct type"); // 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, dt->type, type, named_type); case_end; case_ast_node(pt, PolyType, e); |