aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-07-21 00:26:14 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-07-21 00:26:14 +0100
commitcbd82e3c02cbeff8fe3ba5198d6ca730f8c1eace (patch)
tree00728d59925609e8fd081f5276e8b26117ec00e3 /src/checker/type.cpp
parentaa6a2caecb759522914ba82cc506e60270ad1ab0 (diff)
Support import files as modules (i.e. import only once)
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index b7be9a3db..301def0ca 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -26,6 +26,7 @@ enum BasicKind {
Basic_Count,
+ Basic_byte = Basic_u8,
Basic_rune = Basic_i32,
};
@@ -204,7 +205,8 @@ gb_global Type basic_types[] = {
};
gb_global Type basic_type_aliases[] = {
- {Type_Basic, {Basic_rune, BasicFlag_Integer, STR_LIT("rune")}},
+ {Type_Basic, {Basic_byte, BasicFlag_Integer | BasicFlag_Unsigned, STR_LIT("byte")}},
+ {Type_Basic, {Basic_rune, BasicFlag_Integer, STR_LIT("rune")}},
};