Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT#113888
  • Loading branch information
skids committed Sep 16, 2015
1 parent e60f683 commit ce80412
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion integration/error-reporting.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 21;
plan 22;

use lib 't/spec/packages';

Expand Down Expand Up @@ -177,5 +177,16 @@ is_run 'sub foo { ({a=>1,b=>2}, {c=>3,d=>4}).map({ if (.<a>) {return $_} else {
}, "Correct error and a backtrace for return in mainline code";


# RT #113888
{
is_run 'print "a".WHAT',
{
status => 0,
out => '',
err => all(rx/Str/, rx/\^name|gist|perl|say/)
}, 'Using type object in string context provides help';
}



# vim: ft=perl6

0 comments on commit ce80412

Please sign in to comment.