aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-16 12:34:35 +0100
committergingerBill <bill@gingerbill.org>2021-05-16 12:34:35 +0100
commitce08e832f7dcdeeae37cf0e432648efa2f27f2a7 (patch)
tree5fce8a8f71efe50d85831bd0c27cb344c2aee4ea /src/check_type.cpp
parent24c89b3eeed9d36fd6adfdc2f4a412b39fc59c6b (diff)
Allow `..=` alongside `..` as a "full range" operator; Update `core:odin/parser` etc
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index cdce6dae8..24a3e0a59 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -931,6 +931,7 @@ void check_bit_set_type(CheckerContext *c, Type *type, Type *named_type, Ast *no
switch (be->op.kind) {
case Token_Ellipsis:
+ case Token_RangeFull:
if (upper - lower >= bits) {
error(bs->elem, "bit_set range is greater than %lld bits, %lld bits are required", bits, (upper-lower+1));
}