Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #114100 (Capture.perl flattening bug).
  • Loading branch information
jnthn committed Apr 28, 2015
1 parent 0aae938 commit 50dbbdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S02-types/capture.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 26;
plan 27;

{
my $capture = \(1,2,3);
Expand Down Expand Up @@ -151,4 +151,11 @@ nok (defined \()[0]), '\()[0] is not defined';
is %(\( (:a(2)) )).elems, 0, 'Parens around a colonpair in \(...) make a positional (2)';
}

# RT #114100
{
sub f(|everything) { everything.perl };
my %h = :a, :b, :!c;
ok f(%h) ~~ /'\(' \s* '{'/, 'Hashes not flattened into capture list';
}

# vim: ft=perl6

0 comments on commit 50dbbdf

Please sign in to comment.