Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (29 sloc) 0.609 kb
use v6;
use Test;
plan 2;
class Parent {
method me {
self;
}
}
class Child is Parent {
method myself {
self.Parent::me();
}
}
role R {
method me {
self;
}
}
class Consumer does R {
method myself {
self.R::me();
}
}
my $child = Child.new;
is( $child.myself, $child, 'Qualified method calls should use the original self' );
my $consumer = Consumer.new;
#?rakudo skip "qualified method calls with roles don't preserve original self"
is( $consumer.myself, $consumer, 'Qualified method calls should use the original self' );
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.