Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 5, 2018 11:24
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/86d666b5c36c6211d0ec18fb7df69402 to your computer and use it in GitHub Desktop.
Save Whateverable/86d666b5c36c6211d0ec18fb7df69402 to your computer and use it in GitHub Desktop.
evalable6
sub f(IO::Path:D $target where { .f && .extension eq "zip" }) { }; say f ".".IO;
(exit code 1)
Constraint type check failed in binding to parameter '$target'; expected anonymous constraint to be met but got IO::Path (IO::Path.new(".", :SPEC(IO::S...)
in sub f at /tmp/LC9fSCK8vG line 1
in block <unit> at /tmp/LC9fSCK8vG line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment