root/t/oo/positional_parameters_in_BUILD.t

Revision 20490, 315 bytes (checked in by Auzon, 8 months ago)

s/use v6-alpha;$/use v6;/;
Also catching a few other mentions of v6-alpha.

  • Property svn:mime-type set to text/plain; charset=UTF-8
  • Property svn:eol-style set to native
  • Property eol:style set to native
Line 
1use v6;
2
3use Test;
4plan 1;
5
6my $value_from_BUILD;
7#L<S12/"Construction and Initialization"/named arguments to bless passed to
8#       CREATE BUILD>
9
10class Foo { submethod BUILD ($value) { $value_from_BUILD = $value; } };
11
12dies_ok { Foo.new("passed") }, 'positional args passed to new() should not be passed on to BUILD';
Note: See TracBrowser for help on using the browser.