Created
September 9, 2017 09:05
-
-
Save scovit/3cec65085dcc747fc5aac1d0bfd03cf5 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 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