aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-22 19:14:16 +0000
committergingerBill <bill@gingerbill.org>2024-02-22 19:14:16 +0000
commitc14b9d461a5c58d4b80957682f00205714063435 (patch)
tree8971fd3642e00e08b0c1a49fd2823b9a22a23f99 /src/check_type.cpp
parent8060e3170ebb973167e6beaf3dd1f5e31226f3b1 (diff)
Support `using` of a `bit_field` within a `struct`
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 41eae2178..74828f97f 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -89,6 +89,8 @@ gb_internal bool does_field_type_allow_using(Type *t) {
return true;
} else if (is_type_array(t)) {
return t->Array.count <= 4;
+ } else if (is_type_bit_field(t)) {
+ return true;
}
return false;
}