Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure .perl works correctly on Array's with constrained values
  • Loading branch information
lizmat committed Jul 8, 2013
1 parent 577a030 commit 8bd124f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/Array.pm
Expand Up @@ -132,6 +132,13 @@ class Array {
self.gimme($pos + 1);
nqp::bindpos(nqp::getattr(self, List, '$!items'), $pos, bindval)
}
multi method perl(::?CLASS:D \SELF:) {
'Array['
~ TValue.perl
~ '].new('
~ self.map({.perl}).join(', ')
~ ')';
}
# XXX some methods to come here...
}
method PARAMETERIZE_TYPE(Mu $t) {
Expand Down

0 comments on commit 8bd124f

Please sign in to comment.