Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix our ($x, $y).
  • Loading branch information
jnthn committed Nov 5, 2012
1 parent 0dd4514 commit e472c9b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -1743,11 +1743,15 @@ class Perl6::Actions is HLL::Actions does STDActions {
elsif $shape {
$/.CURSOR.panic("Cannot put a shape on an 'our'-scoped variable");
}
my $lex := QAST::Var.new( :name($name), :scope('lexical') );
unless $BLOCK.symbol($name) {
$lex.decl('var');
$BLOCK.symbol($name, :scope('lexical'));
}
$BLOCK[0].push(QAST::Op.new(
:op('bind'),
QAST::Var.new( :name($name), :scope('lexical'), :decl('var') ),
$lex,
$*W.symbol_lookup([$name], $/, :package_only(1), :lvalue(1))));
$BLOCK.symbol($name, :scope('lexical'));
}
else {
$*W.throw($/, 'X::Comp::NYI',
Expand Down

0 comments on commit e472c9b

Please sign in to comment.