Skip to content

Instantly share code, notes, and snippets.

@timo
Created July 2, 2012 17:07
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 timo/3034309 to your computer and use it in GitHub Desktop.
Save timo/3034309 to your computer and use it in GitHub Desktop.
perl6 where clauses on subsets don't close over outer vars?
use Test;
plan 2;
my $outer = "hello";
subset LikeOuter of Str where { $_ eq $outer };
my LikeOuter $a = "hello";
dies_ok { $a = "what" };
$outer = "what";
lives_ok { $a = "what" };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment