Created
December 9, 2019 09:08
-
-
Save Whateverable/e0f1d421005933f671e738508398a9be 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 Str:D $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/bCguttjt2y | |
Cannot put a type constraint on an 'our'-scoped variable | |
at /tmp/bCguttjt2y:1 | |
------> role R[Str:D $_n]{our Str:D $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