Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUILD should not prevent initialization of attributes it did not mention
  • Loading branch information
moritz committed Oct 1, 2011
1 parent 9e7fb12 commit 0dc03f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S12-attributes/instance.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 134;
plan 135;

=begin pod
Expand Down Expand Up @@ -606,6 +606,14 @@ is Foo7e.new.attr, 42, "default attribute value (1)";

}

# RT #68498
{
class Foo { has $.bar = "baz"; submethod BUILD {} }
is Foo.new.bar, 'baz',
'presence of BUILD does not prevent assignment of default values';

}

done();

# vim: ft=perl6

0 comments on commit 0dc03f4

Please sign in to comment.