Created
December 9, 2019 09:09
-
-
Save Whateverable/7eaf82b2b211b3db7de6373322b74225 to your computer and use it in GitHub Desktop.
evalable6
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 R[Str:D $_n]{our $n = $_n};role R2[Str:D $n]{also does R[$n]};class A does R2['asd'] {};say A.n |
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
(exit code 1) | |
===SORRY!=== Error while compiling /tmp/lDXmpVPzso | |
Cannot declare our-scoped variable inside of a role | |
(the scope inside of a role is generic, so there is no unambiguous | |
package to install the symbol in) | |
at /tmp/lDXmpVPzso:1 | |
------> role R[Str:D $_n]{our $n⏏ = $_n};role R2[Str:D $n]{also does R[$n | |
expecting any of: | |
constraint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment