Skip to content

Commit

Permalink
RakuAST: stop "our \x" from being codegenned
Browse files Browse the repository at this point in the history
It's a NYI in base, make it a NYI here as well, although it looks
like it should be pretty easy to implement in RakuAST.

Will leave that for another day.
  • Loading branch information
lizmat committed Feb 11, 2023
1 parent ad940de commit af90aed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Raku/Actions.nqp
Expand Up @@ -1523,6 +1523,10 @@ class Raku::Actions is HLL::Actions does Raku::CommonActions {
}
elsif $<defterm> {
my str $scope := $*SCOPE;
$/.typed_panic('X::Comp::NYI',
feature => "our scoped term definitions (only 'my' is supported at the moment)"
) if $scope eq 'our';

my $type := $*OFTYPE ?? $*OFTYPE.ast !! self.r('Type');
my $name := $<defterm>.ast;
my $initializer := $<term_init>.ast;
Expand Down

0 comments on commit af90aed

Please sign in to comment.