-
-
Save agentzh/1e61c6267c1961fce7f05d436865977d 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
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