Skip to content

Commit

Permalink
Make "is required("reason")" work (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 17, 2018
1 parent 20b1756 commit 7c349b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -1468,6 +1468,7 @@ BEGIN {
nqp::p6bool(1)
}));
Attribute.HOW.add_method(Attribute, 'set_required', nqp::getstaticcode(sub ($self, $value) {
$*W.add_object_if_no_sc($value);
nqp::bindattr(nqp::decont($self),
Attribute, '$!required', $value);
nqp::p6bool(1)
Expand Down

0 comments on commit 7c349b7

Please sign in to comment.