Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

dispatch test involving literals and optional parameters (RT #88562)

  • Loading branch information...
commit 39684f0f4abc9cd15305fd1e2a593291367b52e2 1 parent 6fba902
Moritz Lenz moritz authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 S06-multi/value-based.t
8 S06-multi/value-based.t
@@ -2,7 +2,7 @@ use v6;
2 2
3 3 use Test;
4 4
5   -plan 8;
  5 +plan 9;
6 6
7 7 # L<S06/Routine modifiers/>
8 8 # L<S06/Parameters and arguments/>
@@ -40,4 +40,10 @@ plan 8;
40 40 is m3(2, 'A'), 'b', 'literal Int, anonymous parameters and default values mix';
41 41 }
42 42
  43 +{
  44 + multi sub foo(0, $) { 'B' };
  45 + multi sub foo(Int $n, Str $a="A") { $a };
  46 + is foo(2,"A"), 'A', 'Literals and optionals mix';
  47 +}
  48 +
43 49 # vim: ft=perl6

0 comments on commit 39684f0

Please sign in to comment.
Something went wrong with that request. Please try again.