Skip to content

Commit

Permalink
Fix incorrect method call
Browse files Browse the repository at this point in the history
`World::throw` needs grammar object as the first parameter
  • Loading branch information
vrurg committed Aug 3, 2020
1 parent d8f0507 commit 02a8344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -6169,7 +6169,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
my $ast_class := $*W.find_single_symbol('AST');
unless istype($macro_ast, $ast_class) {
$*W.throw('X::TypeCheck::Splice',
$*W.throw($/, 'X::TypeCheck::Splice',
got => $macro_ast,
expected => $ast_class,
symbol => $name,
Expand Down

0 comments on commit 02a8344

Please sign in to comment.