Last active
April 17, 2016 14:53
-
-
Save jonathanstowe/2205827ba7960ec6c7fa0d2095c3f853 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role Bop[::Zub] { | |
has Zub $.bap; | |
}; | |
role Foo[::Bap] { | |
has Bap $.bop; | |
}; | |
my $f = Str; | |
my $d = class {} but Bop.^parameterize($f); | |
my $c = class {} but Foo.^parameterize($d); | |
for $c.^attributes -> $a { | |
my $t = $a.type; | |
say $t; | |
for $t.^attributes -> $a { | |
say $a.type; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment