Skip to content

Commit

Permalink
Tests for #57788
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Sep 14, 2011
1 parent bb87d97 commit f695da8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion S06-advanced_subroutine_features/lexical-subs.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 10;
plan 11;

{
sub f() {
Expand Down Expand Up @@ -61,7 +61,11 @@ plan 10;
sub f { };
}
dies_ok { TestScope::f }, 'subs without scoping modifiers are not entered in the namespace';
}

# RT #57788
{
eval_dies_ok 'sub a { }; sub a { }';
}

# vim: ft=perl6 :
7 changes: 6 additions & 1 deletion S12-methods/multi.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 34;
plan 35;

# L<S12/"Multisubs and Multimethods">
# L<S12/"Trusts">
Expand Down Expand Up @@ -221,6 +221,11 @@ is Bar.new.a("not an Int"), 'Any-method in Foo';
'$.foo attribute has no accessor when foo() method is present';
}

# RT #57788
{
eval_dies_ok 'class A { method m() { }; method m() { } }';
}

done;

# vim: ft=perl6

0 comments on commit f695da8

Please sign in to comment.