Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created September 6, 2015 19:47
Show Gist options
  • Save FROGGS/e0a5b6ec63afef9817ae to your computer and use it in GitHub Desktop.
Save FROGGS/e0a5b6ec63afef9817ae to your computer and use it in GitHub Desktop.
diff --git a/src/Perl6/Actions.nqp b/src/Perl6/Actions.nqp
index bfac49c..6cad665 100644
--- a/src/Perl6/Actions.nqp
+++ b/src/Perl6/Actions.nqp
@@ -1856,6 +1856,8 @@ Compilation unit '$file' contained the following violations:
sub make_pair($key_str, $value) {
my $key := $*W.add_string_constant($key_str);
+ $key.named('key');
+ $value.named('value');
QAST::Op.new(
:op('callmethod'), :name('new'), :returns($*W.find_symbol(['Pair'])),
QAST::Var.new( :name('Pair'), :scope('lexical') ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment