We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfe9bb commit f014bdcCopy full SHA for f014bdc
src/QAST/Compiler.nqp
@@ -506,7 +506,8 @@ class QAST::Compiler is HLL::Compiler {
506
elsif $scope eq 'lexical' {
507
# If the lexical is directly declared in this block, we use the
508
# register directly.
509
- if $*BLOCK.lexical_type($name) -> $type {
+ my %sym := $*BLOCK.qast.symbol($name);
510
+ if (!%sym || !%sym<lazyinit>) && $*BLOCK.lexical_type($name) -> $type {
511
my $reg := $*BLOCK.lex_reg($name);
512
if $*BINDVAL {
513
my $valpost := self.coerce(self.as_post_clear_bindval($*BINDVAL), nqp::lc($type));
0 commit comments