Help language development. Donate to The Perl Foundation

Gnome::Gtk3 cpan:MARTIMM last updated on 2020-09-23

xt/subset-test.pl6
use v6;

class ABC {
  method s ( Int $i ) { say $i + 10; }
}

#subset DEF of ABC;
my constant DEF = ABC:D;

my ABC $a .= new;
$a.s(10);

my DEF $d1 = $a;
$d1.s(11);

my DEF $d2 .= new;
$d2.s(12);