Skip to content

Instantly share code, notes, and snippets.

@jonathanstowe
Last active April 17, 2016 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanstowe/2205827ba7960ec6c7fa0d2095c3f853 to your computer and use it in GitHub Desktop.
Save jonathanstowe/2205827ba7960ec6c7fa0d2095c3f853 to your computer and use it in GitHub Desktop.
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