Created
October 20, 2019 14:58
-
-
Save Whateverable/4424d7f1796b9ec35775baaa9a4128b5 to your computer and use it in GitHub Desktop.
bisectable6
This file contains hidden or 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
BEGIN { my str $name = 'foo'; our Mu:U $subset := Metamodel::SubsetHOW.new_type: :$name; $*W.add_object_if_no_sc: $subset }; say $subset.^name.WHAT |
This file contains hidden or 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
Output on both points: «===SORRY!=== Error while compiling /tmp/3Uvpi6YG1H | |
Cannot put a type constraint on an 'our'-scoped variable | |
at /tmp/3Uvpi6YG1H:1 | |
------> { my str $name = 'foo'; our Mu:U $subset⏏ := Metamodel::SubsetHOW.new_type: :$nam | |
expecting any of: | |
constraint | |
» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment