Permalink
Browse files

Make sure Parcel.new actually works

  • Loading branch information...
1 parent a2f9e0b commit 8e076257f79cbdbb11283b67e9ca4fba5913b0d7 @lizmat lizmat committed Jul 11, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/Parcel.pm
View
@@ -3,6 +3,8 @@ my class Parcel does Positional {
# is Cool; # parent class
# has $!storage; # RPA of Parcel's elements
+ submethod BUILD() { $!storage := nqp::list() }
+
multi method Bool(Parcel:D:) { nqp::p6bool($!storage) }
multi method Numeric(Parcel:D:) { self.flat.elems }
multi method Str(Parcel:D:) { self.flat.Str }

0 comments on commit 8e07625

Please sign in to comment.