Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.336 kB
#! nqp
plan(2);
class Foo {
has $!answer;
method question($what) { $!answer := $what }
method answer() { $!answer }
};
my $first := Foo.new;
my $second := Foo.new;
$first.question(42);
$second.question(23);
ok($first.answer == 42, "attributes work");
ok($second.answer == 23, "... and are not shared among objects");
Jump to Line
Something went wrong with that request. Please try again.