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/7c74c45d8f5823783a02ccc12615602b to your computer and use it in GitHub Desktop.
Save Whateverable/7c74c45d8f5823783a02ccc12615602b 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)
WARNINGS for /tmp/WKZTVG9P1A:
Useless use of "eq" in expression ".extension eq \"zip\"" in sink context (line 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/WKZTVG9P1A line 1
in block <unit> at /tmp/WKZTVG9P1A line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment