Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created February 19, 2012 12:43
Show Gist options
  • Save jnthn/1863657 to your computer and use it in GitHub Desktop.
Save jnthn/1863657 to your computer and use it in GitHub Desktop.
diff --git a/src/Perl6/Actions.pm b/src/Perl6/Actions.pm
index fd4b9cd..b460a75 100644
--- a/src/Perl6/Actions.pm
+++ b/src/Perl6/Actions.pm
@@ -1158,9 +1158,9 @@ class Perl6::Actions is HLL::Actions {
# Expect variable to have been declared somewhere.
# Locate descriptor and thus type.
+ $past.scope('lexical_6model');
try {
my $type := $*W.find_lexical_container_type($past.name);
- $past.scope('lexical_6model');
$past.type($type);
$past := box_native_if_needed($past, $type);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment