From d2c64be85ca15117b1745b254b1806ea739aef43 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 24 Aug 2016 23:25:56 +0100 Subject: `using` on struct/union fields --- src/checker/type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/checker/type.cpp') 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; -- cgit v1.2.3