Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for RT #98854
  • Loading branch information
peschwa committed Jan 31, 2014
1 parent dacd397 commit a78a516
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions S32-exceptions/misc.t
Expand Up @@ -473,4 +473,8 @@ throws_like q[sub f() {CALLER::<$x>}; my $x; f], X::Caller::NotDynamic, symbol =
throws_like 'class A { method b { Q<b> } }; my $a = A.new; my $b = &A::b.assuming($a); $b();',
X::Method::NotFound, method => { m/'assuming'/ }, private => { $_ === False };

# RT #98854
throws_like 'sub f { f(|$) }', X::Obsolete,
old => { m/'$) variable'/ }, replacement => { m/'$*EGID'/ }, when => { m/'in Perl 6'/ };

done;

0 comments on commit a78a516

Please sign in to comment.