Skip to content

Instantly share code, notes, and snippets.

@scovit
Created September 9, 2017 09:05
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 scovit/3cec65085dcc747fc5aac1d0bfd03cf5 to your computer and use it in GitHub Desktop.
Save scovit/3cec65085dcc747fc5aac1d0bfd03cf5 to your computer and use it in GitHub Desktop.
role DataNo {
method Blob() {
my \T = uint8;
say T;
Blob[T].new;
}
}
my DataNo $a = DataNo.new;
say $a.Blob;
role Data[::T] {
method Blob() {
say T;
Blob[T].new;
}
}
my Data[uint8] $b = Data[uint8].new;
say $b.Blob;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment