aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-08-30 23:32:04 +0100
committerGinger Bill <bill@gingerbill.org>2016-08-30 23:32:04 +0100
commitcda0234d487ab73a1c87cbdcd74e300718ca7d0a (patch)
treebf7ccddca7a7c0146cfdba35ab731f93edd25201 /src/checker/type.cpp
parenta06f70d5d95bb7889bf9e8b920d70fd10daf7c12 (diff)
Subtyping Polymorphic arguments; `using` procedure parameters
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index d5cef4b07..2bec64615 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -107,21 +107,21 @@ struct Type {
// Theses are arrays
Entity **fields; // Entity_Variable
isize field_count; // == offset_count
+ Entity **other_fields; // Entity_Constant or Entity_TypeName
+ isize other_field_count;
AstNode *node;
i64 * offsets;
b32 are_offsets_set;
b32 is_packed;
-
- Entity **other_fields; // Entity_Constant or Entity_TypeName
- isize other_field_count;
-
} Struct;
struct {
// IMPORTANT HACK(bill): The positions of fields, field_count, and node
// must be same for Struct and Union
Entity **fields; // Entity_Variable
isize field_count;
+ Entity **other_fields; // Entity_Constant or Entity_TypeName
+ isize other_field_count;
AstNode *node;
} Union;
struct { Type *elem; } Pointer;