From ae7a219c9475f21a3b0cccbf9c1b1b81a45d443e Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Tue, 2 May 2023 11:52:43 +0200 Subject: [PATCH] RakuAST: make sure you can call HLL methods on $=finish Instead of getting an error such as: No such method 'lines' for invocant of type 'BOOTStr'. Found 'lines' on type 'Cool' --- src/Raku/ast/compunit.rakumod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Raku/ast/compunit.rakumod b/src/Raku/ast/compunit.rakumod index e9e41f0649d..1027f883366 100644 --- a/src/Raku/ast/compunit.rakumod +++ b/src/Raku/ast/compunit.rakumod @@ -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 }