Skip to content

Commit

Permalink
Add tests for R#2058
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 26, 2018
1 parent bdc9fd5 commit 8995cd7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion S02-names/pseudo.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 155;
plan 157;

# I'm not convinced this is in the right place
# Some parts of this testing (i.e. WHO) seem a bit more S10ish -sorear
Expand Down Expand Up @@ -465,4 +465,15 @@ subtest 'no guts spillage when going too high up scope in pseudopackages' => {
eval-lives-ok '$' ~ $_ x 100 ~ 'True', $_ for @packs;
}

# R#2058
{
multi sub a($a) { $a + $a }
multi sub a() { a CALLERS::<$_> }

is a(42), 84, 'can we call the sub with a parameter';
given 42 {
is a(), 84, 'can we call the sub without a parameter';
}
}

# vim: ft=perl6

0 comments on commit 8995cd7

Please sign in to comment.