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
| pmichaud@kiwi:~/nom$ cat myj | |
| my class MyJunction is Mu { | |
| has $!type; # type of Junction | |
| method xyz() { $!type; } | |
| } | |
| my $any = MyJunction.new(:type('any')); | |
| say $any.xyz; | |
| pmichaud@kiwi:~/nom$ ./perl6 myj | |
| Mu() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment