Skip to content

Commit

Permalink
RakuAST: a class doing CheckTime can invoke .add-worry
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 3, 2023
1 parent 3d91a34 commit b468d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Raku/ast/expressions.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -1342,8 +1342,8 @@ class RakuAST::ApplyInfix
if $operator eq ',' || $operator eq 'xx' {
my $sigil := (try $left.sigil) // '';
if $sigil eq '$' || $sigil eq '@' {
$resolver.add-worry:
$resolver.build-exception: 'X::AdHoc',
self.add-worry:
self.build-exception: 'X::AdHoc',
payload => "Using $operator on a "
~ ($sigil eq '$' ?? 'scalar' !! 'array')
~ " is probably NOT what you want, as it will create\n"
Expand Down

0 comments on commit b468d24

Please sign in to comment.