Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't overspecify error message on bare ord
  • Loading branch information
TimToady committed Feb 24, 2015
1 parent 9394e7e commit d39c6dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S32-exceptions/misc.t
Expand Up @@ -552,7 +552,7 @@ throws_like { $*an_undeclared_dynvar = 42 }, X::Dynamic::NotFound;

{
my $*foo = 0;
throws_like { EVAL '$*foo = 1; say' }, X::Obsolete;
throws_like { EVAL '$*foo = 1; say' }, X::Comp::Group;
is $*foo, 0, 'should be a compile time error';
}

Expand Down Expand Up @@ -592,8 +592,7 @@ throws_like { $*an_undeclared_dynvar = 42 }, X::Dynamic::NotFound;

# RT #114014
{
throws_like { EVAL q[ ord.Cool ] }, X::Obsolete,
message => q[Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument],
throws_like { EVAL q[ ord.Cool ] }, X::Comp::Group,
'adequate error message when calling bare "ord"';
}

Expand Down

0 comments on commit d39c6dc

Please sign in to comment.