Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
failing test for RT #77472, wrap on a multi
  • Loading branch information
moritz committed Jan 12, 2013
1 parent 47a4659 commit aedecf7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S06-advanced/wrap.t
Expand Up @@ -12,7 +12,7 @@ use soft;
# mutating wraps -- those should be "deep", as in not touching coderefs
# but actually mutating how the coderef works.

plan 67;
plan 68;

my @log;

Expand Down Expand Up @@ -217,6 +217,18 @@ dies_ok { {nextsame}() }, '{nextsame}() dies properly';
is @t.join("\n"), "\n=\n==\n===\n==\n=\n", 'multiple wrappings in a loop';
}

# RT #77472
{
multi multi-to-wrap($x) {
$x * 2;
};
&multi-to-wrap.wrap({
2 * callsame;
});
#?rakudo todo 'RT 77472'
is multi-to-wrap(5), 20, 'can wrap a multi';
}

done;

# vim: ft=perl6

0 comments on commit aedecf7

Please sign in to comment.