/Foo::Node.pm6 Secret
Created
January 22, 2017 23:09
Star
You must be signed in to star a gist
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
| use Foo::Node; | |
| unit class Main is Foo::Node; | |
| use Foo::Stmt; | |
| use Foo::Use; | |
| has Array[Foo::Stmt] %.foo{Str}; | |
| method bar { | |
| my Foo::Stmt @a; | |
| my @cur-sub-docs = [@a]; | |
| %!foo<abc> = @a; # this line throws out a type constraint failure exception | |
| } |
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
| unit class Foo::Node; |
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
| use Foo::Node; | |
| unit class Foo::Stmt is Foo::Node; |
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
| use Foo::Stmt; | |
| unit class Foo::Use is Foo::Stmt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment