Skip to content

Commit

Permalink
RT #73768, ~Any should warn
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 3, 2012
1 parent d5ac5a6 commit ed9af51
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S32-basics/warn.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 6;
plan 7;

BEGIN { @*INC.push('t/spec/packages') };

Expand All @@ -26,6 +26,16 @@ use Test::Util;
ok $caught, 'CONTROL catches exceptions'
}

# RT #73768
{
my $caught = 0;
{
CONTROL { default { $caught = 1 } };
~Any
}
ok $caught, 'Stringifying Any warns';
}

#?niecza todo
is_run 'use v6; warn; say "alive"',
{
Expand Down

0 comments on commit ed9af51

Please sign in to comment.