Skip to content

Commit

Permalink
Fix infinite loop on declaring constants containing infinite lists.
Browse files Browse the repository at this point in the history
my constant $l  = (βˆ’βˆžβ€¦βˆž); must not be sunk
  • Loading branch information
niner committed Mar 5, 2023
1 parent c74e160 commit 3bc6e52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Raku/ast/variable-declaration.rakumod
Expand Up @@ -233,6 +233,7 @@ class RakuAST::VarDeclaration::Constant
method default-scope() { 'our' }
method allowed-scopes() { self.IMPL-WRAP-LIST(['my', 'our']) }
method is-simple-lexical-declaration() { True }
method needs-sink-call() { False }

method attach(RakuAST::Resolver $resolver) {
if self.scope eq 'our' {
Expand Down

0 comments on commit 3bc6e52

Please sign in to comment.