aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-08-24 23:25:56 +0100
committerGinger Bill <bill@gingerbill.org>2016-08-24 23:25:56 +0100
commitd2c64be85ca15117b1745b254b1806ea739aef43 (patch)
tree2f5192cfbff77a6eef55ddf1fe2f1269b403561a /src/checker/type.cpp
parent6bd898e552392b1bd11ad16c7476833261c1d4b7 (diff)
`using` on struct/union fields
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index e7cf827d3..fe5aaf5ce 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -112,6 +112,8 @@ struct Type {
b32 is_packed;
} Struct;
struct {
+ // IMPORTANT HACK(bill): The positions of fields and field_count
+ // must be same for Struct and Union
Entity **fields; // Entity_Variable
isize field_count;
} Union;