This is an automatically generated mail to inform you that tests are now available in t/spec/S14-roles/attributes.t
commit a69aa9834e6834a33645fe8224e8fe721c764eae Author: jnthn <jn...@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Wed Jul 29 13:05:34 2009 +0000 [t/spec] Test for RT#7992. git-svn-id: http://svn.pugscode.org/p...@27793 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S14-roles/attributes.t b/t/spec/S14-roles/attributes.t index 48e63e7..85acc47 100644 --- a/t/spec/S14-roles/attributes.t +++ b/t/spec/S14-roles/attributes.t @@ -1,6 +1,6 @@ use v6; use Test; -plan 5; +plan 6; # L<S14/Roles/"Roles may have attributes"> @@ -40,4 +40,10 @@ role R3 { class C4 does R3 { } is C4.new.x, 42, 'initializing attributes in a role works'; +role R4 { has @!foo; method bar() { @!foo } } +class C5 does R4 { + has $.baz; +} +is C5.new().bar(), [], 'Composing an attribute into a class that already has one works'; + # vim: syn=perl6