Skip to content

Commit

Permalink
Test for RT #118607
Browse files Browse the repository at this point in the history
Requires Rakudo PR #854 (rakudo/rakudo#854).
  • Loading branch information
MasterDuke17 committed Aug 30, 2016
1 parent 3b8dbdb commit 44779ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S04-declarations/multiple.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 6;
plan 7;

# L<S04/The Relationship of Blocks and Declarations/"If you declare a lexical
# twice in the same scope">
Expand Down Expand Up @@ -31,4 +31,8 @@ throws-like 'only sub foo {1; }; sub foo($x) {1; };', X::Redeclaration,
eval-lives-ok 'proto foo {1; }; sub foo {1; }; sub foo($x) {1; };',
'multiple declarations need multi or proto';

# RT #118607
throws-like 'sub foo {1; }; sub foo($x) {1; };', X::Redeclaration,
'suggest multi-sub for sub redeclaration', message => /'did you mean to declare a multi-sub'/;

# vim: ft=perl6

0 comments on commit 44779ac

Please sign in to comment.