Skip to content

Commit

Permalink
Merge pull request Raku#12 from djanatyn/master
Browse files Browse the repository at this point in the history
GCI - Test for RT #74300
  • Loading branch information
moritz committed Dec 29, 2011
2 parents 18f9e04 + 363a3db commit cbde750
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S12-construction/new.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 23;
plan 24;

class Parent {
has $.x;
Expand Down Expand Up @@ -112,6 +112,15 @@ is $o.x, 5, '... worked for the class Parent (other order)';
dies_ok { X.new }, 'RT #100780'
}

# RT #74300
{
class RT74300 {
has $.foo;
multi method new($) {}
}
is RT74300.new(:foo<bar>).foo, 'bar', 'multi method($) does not break attribute initialization';
}

done;

# vim: ft=perl6

0 comments on commit cbde750

Please sign in to comment.