Skip to content

Commit ffb5596

Browse files
committed
Catch NQPQ up with changes to NQP (just some actions twiddles).
1 parent 4e60875 commit ffb5596

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/NQPQ/Actions.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class NQP::Actions is HLL::Actions {
6767
}
6868

6969
# Need to load the NQP dynops/dympmcs, plus any extras requested.
70-
my @loadlibs := ['nqp_group', 'nqp_ops', 'trans_ops', 'io_ops'];
70+
my @loadlibs := ['nqp_group', 'nqp_ops', 'nqp_bigint_ops', 'trans_ops', 'io_ops'];
7171
if %*COMPILING<%?OPTIONS><vmlibs> {
7272
for pir::split(',', %*COMPILING<%?OPTIONS><vmlibs>) {
7373
@loadlibs.push($_);
@@ -456,11 +456,14 @@ class NQP::Actions is HLL::Actions {
456456
elsif $<twigil>[0] eq '!' {
457457
# Construct PAST.
458458
my $name := ~@name.pop;
459+
my $ch := PAST::Var.new( :name('$?CLASS') );
460+
$ch<has_compile_time_value> := 1;
461+
$ch<compile_time_value> := $*PACKAGE;
459462
$past := PAST::Var.new(
460463
:name($name), :scope('attribute_6model'),
461464
:viviself( vivitype( $<sigil> ) ),
462465
PAST::Op.new( :pirop('nqp_decontainerize PP'), PAST::Var.new( :name('self') ) ),
463-
PAST::Var.new( :name('$?CLASS') )
466+
$ch
464467
);
465468

466469
# Make sure the attribute exists and add type info.

0 commit comments

Comments
 (0)