Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A type declared in BOOTSTRAP should have its attributes set up there …
…also; Capture broke this rule, which caused issues.
  • Loading branch information
jnthn committed Feb 26, 2012
1 parent d3bd66a commit 854d464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/Perl6/Metamodel/BOOTSTRAP.pm
Expand Up @@ -717,7 +717,9 @@ BEGIN {
# ...
# }
Capture.HOW.add_parent(Capture, Any);

Capture.HOW.add_attribute(Capture, BOOTSTRAPATTR.new(:name<$!list>, :type(Mu), :package(Capture)));
Capture.HOW.add_attribute(Capture, BOOTSTRAPATTR.new(:name<$!hash>, :type(Mu), :package(Capture)));

# class Bool is Cool {
# has int $!value;
# ...
Expand Down
3 changes: 0 additions & 3 deletions src/core/Capture.pm
@@ -1,7 +1,4 @@
my class Capture {
has Mu $!list;
has Mu $!hash;

submethod BUILD(:@list, :%hash) {
nqp::bindattr(self, Capture, '$!list',
nqp::getattr(nqp::p6decont(@list.Parcel), Parcel, '$!storage')
Expand Down

0 comments on commit 854d464

Please sign in to comment.