From f1e1814ff91ab0753891536442797ff8544e6b6c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 11 Sep 2018 12:10:32 +0100 Subject: Syntactic sugar for anonymous enum within a bit set --- src/types.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/types.cpp') 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); -- cgit v1.2.3