Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 29, 2018 04:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Whateverable/7cabce0fa5d69f1f849a8fc25fc59056 to your computer and use it in GitHub Desktop.
evalable6
my Regex @rxs = (rx/3/, rx/2/); my @L = (1 .. 23); sub search(Mu $r where Regex) { grep $r, :v, @L }; say search( any 42 );
(exit code 1)
Constraint type check failed in binding to parameter '$r'; expected anonymous constraint to be met but got Junction (any(42))
in sub search at /tmp/k7_PPXsqi7 line 1
in block <unit> at /tmp/k7_PPXsqi7 line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment