Skip to content

Commit

Permalink
RakuAST: make sure you can call HLL methods on $=finish
Browse files Browse the repository at this point in the history
Instead of getting an error such as:
  No such method 'lines' for invocant of type 'BOOTStr'.
  Found 'lines' on type 'Cool'
  • Loading branch information
lizmat committed May 2, 2023
1 parent 80c35e4 commit ae7a219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Raku/ast/compunit.rakumod
Expand Up @@ -127,7 +127,8 @@ class RakuAST::CompUnit

# Replace the finish content (text after =finish) of the compilation unit.
method replace-finish-content(Mu $finish-content) {
nqp::bindattr(self, RakuAST::CompUnit, '$!finish-content', $finish-content);
nqp::bindattr(self, RakuAST::CompUnit, '$!finish-content',
nqp::hllizefor($finish-content, 'Raku'));
Nil
}

Expand Down

0 comments on commit ae7a219

Please sign in to comment.