Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.336 kb
99575b9 @moritz implement NQPMu.{new,BUILDALL,MAGIC_BUILD}. Tests.
moritz authored
1 plan(2);
2
3 class Parent {
4 has $!bar;
5
6 method bar() { $!bar }
7 }
8 class A is Parent {
9 has @!foo;
10
11 method foo() { @!foo }
12 }
13
14 my $x := A.bless(foo => [1, 2, 3], bar => 'BARBAR');
55631fa @jnthn Update a test to use join, not nqp::join.
jnthn authored
15 ok(join('|', $x.foo) eq '1|2|3', '.new() initializes child class attribute');
99575b9 @moritz implement NQPMu.{new,BUILDALL,MAGIC_BUILD}. Tests.
moritz authored
16 ok($x.bar eq 'BARBAR', '.new() initializes parent class attribute');
Something went wrong with that request. Please try again.