Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT#123407
  • Loading branch information
skids committed Sep 20, 2015
1 parent 2fe8266 commit 704a2a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S12-construction/BUILD.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 9;
plan 10;

# L<S12/Semantics of C<bless>/The default BUILD and BUILDALL>

Expand Down Expand Up @@ -109,4 +109,11 @@ plan 9;
lives-ok { C.new }, 'can call BUILD without providing a value for a !-twigiled named parameter';
}

# RT #123407
{
lives-ok {
role A { has $!a; submethod BUILD(:$!a) {}}; class B does A {}; B.new
}, 'BUILD provided by role can use attributes in signature';
}

# vim: ft=perl6

0 comments on commit 704a2a3

Please sign in to comment.