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 1b3034b commit 3cb1917Copy full SHA for 3cb1917
src/NQP/Actions.pm
@@ -455,11 +455,14 @@ class NQP::Actions is HLL::Actions {
455
elsif $<twigil>[0] eq '!' {
456
# Construct PAST.
457
my $name := ~@name.pop;
458
+ my $ch := PAST::Var.new( :name('$?CLASS') );
459
+ $ch<has_compile_time_value> := 1;
460
+ $ch<compile_time_value> := $*PACKAGE;
461
$past := PAST::Var.new(
462
:name($name), :scope('attribute_6model'),
463
:viviself( vivitype( $<sigil> ) ),
464
PAST::Op.new( :pirop('nqp_decontainerize PP'), PAST::Var.new( :name('self') ) ),
- PAST::Var.new( :name('$?CLASS') )
465
+ $ch
466
);
467
468
# Make sure the attribute exists and add type info.
0 commit comments