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 protobuf[Str $file] { | |
| has $.file is rw; | |
| } | |
| multi trait_mod:<is>(Any $type, :$protobuf!) is export(:DEFAULT, :traits) { | |
| say "I POOP"; | |
| $type does protobuf[$type]; | |
| } | |
| class Monkey is protobuf('hello') { } | |
| say 'monkey: ', Monkey; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment