Last active
December 17, 2015 05:19
-
-
Save lizmat/5557120 to your computer and use it in GitHub Desktop.
Goal for supporting auth / version / name in module / class / grammar ?
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
# should produce JRANDOM\nELIZABETH\n as output | |
module Foo:auth<JRANDOM> { | |
sub foo is export { say "JRANDOM" }; | |
} | |
module Foo:auth<ELIZABETH> { | |
sub foo is export { say "ELIZABETH" }; | |
} | |
{ | |
use Foo:auth<JRANDOM>; | |
say foo; | |
} | |
{ | |
use Foo:auth<ELIZABETH>; | |
say foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment