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/3448140b3df245738f0cf5277c3f0986 to your computer and use it in GitHub Desktop.
Save Whateverable/3448140b3df245738f0cf5277c3f0986 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)
===SORRY!=== Error while compiling /tmp/ZBvMdksnWZ
Malformed double closure; WhateverCode is already a closure without curlies, so either remove the curlies or use valid parameter syntax instead of *
at /tmp/ZBvMdksnWZ:1
------> et where { *.f && *.extension eq "zip" }⏏) { }; say f ".".IO;
expecting any of:
horizontal whitespace
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment