Skip to content

Commit

Permalink
[Druid::Player] added workaround for RT #75858
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Jun 18, 2010
1 parent 1ab1795 commit 991d464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Druid/Player.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class Druid::Player is Druid::Base does Druid::Game::Observer;

#| The game this C<Druid::Player> is playing.
has Druid::Game $!game handles <size layers colors heights make-move>;
# RAKUDO: Need parens here as a workaround for [perl #75858]
#| The color of this C<Druid::Player>'s pieces.
has Int $.color where 1|2;
has (Int $.color where 1|2);

submethod BUILD(Druid::Game :$game!, Int :$color! where { $_ == 1|2 }) {
$game.attach(self);
Expand Down

0 comments on commit 991d464

Please sign in to comment.