aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-11 12:10:32 +0100
committergingerBill <bill@gingerbill.org>2018-09-11 12:10:32 +0100
commitf1e1814ff91ab0753891536442797ff8544e6b6c (patch)
tree52572629c86ee40763f3eb7346a478f5bacad31d /src/types.cpp
parentb468cf141bdec09369ff8d2c28097ec7ead3c2f6 (diff)
Syntactic sugar for anonymous enum within a bit set
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 82744cedf..fa30b228b 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1778,7 +1778,11 @@ Selection lookup_field_with_selection(Type *type_, String field_name, bool is_ty
return sel;
}
}
+ } else if (type->kind == Type_BitSet) {
+ return lookup_field_with_selection(type->BitSet.elem, field_name, true, sel);
}
+
+
if (type->kind == Type_Generic && type->Generic.specialized != nullptr) {
Type *specialized = type->Generic.specialized;
return lookup_field_with_selection(specialized, field_name, is_type, sel);