Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 20, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/4424d7f1796b9ec35775baaa9a4128b5 to your computer and use it in GitHub Desktop.
Save Whateverable/4424d7f1796b9ec35775baaa9a4128b5 to your computer and use it in GitHub Desktop.
bisectable6
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
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