Skip to content

Commit

Permalink
RakuAST: correctly determine type of postcircumfix op
Browse files Browse the repository at this point in the history
Having pod blocks in there, caused the wrong decision to be made.
So look at the number of statements with code only.
  • Loading branch information
lizmat committed Apr 30, 2023
1 parent 3a80128 commit edaa90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raku/ast/expressions.rakumod
Expand Up @@ -1194,7 +1194,7 @@ class RakuAST::Postcircumfix::ArrayIndex

method resolve-with(RakuAST::Resolver $resolver) {
my $resolved := $resolver.resolve-lexical(
nqp::elems(self.IMPL-UNWRAP-LIST($!index.statements)) > 1
nqp::elems($!index.code-statements) > 1
?? '&postcircumfix:<[; ]>'
!! '&postcircumfix:<[ ]>');
if $resolved {
Expand Down

0 comments on commit edaa90a

Please sign in to comment.