Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #74300
  • Loading branch information
djanatyn committed Dec 29, 2011
1 parent 18f9e04 commit 363a3db
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 363a3db

Please sign in to comment.