commit 08d2205c2a48d1157a356c81b08cfaca66b60cfe
parent 8f4f4f5742282f6890611094030ee8219794c7ec
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 13 May 2022 23:35:08 -0400
hare::parse: permit suffix on tuple access index
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/hare/parse/expr.ha b/hare/parse/expr.ha
@@ -1022,9 +1022,6 @@ fn postfix_dot(
synassert(lex::mkloc(lexer), val is ast::number_constant,
"Expected integer constant")?;
let val = val as ast::number_constant;
- synassert(lex::mkloc(lexer),
- val.value is i64 && val.suff == ltok::LIT_ICONST,
- "Expected integer constant")?;
return ast::expr {
start = lvalue.start,
end = lex::prevloc(lexer),