Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 10, 2019 16:23
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/26ce837ed46a9b89e3f004fbdb7bbd6d to your computer and use it in GitHub Desktop.
Save Whateverable/26ce837ed46a9b89e3f004fbdb7bbd6d to your computer and use it in GitHub Desktop.
evalable6
sub foo(@a where .all ~~ Int) { @a }; say foo [1,'x',3]
(exit code 1)
Constraint type check failed in binding to parameter '@a'; expected anonymous constraint to be met but got Array ($[1, "x", 3])
in sub foo at /tmp/dyVArAOylU line 1
in block <unit> at /tmp/dyVArAOylU line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment