Skip to content

Commit

Permalink
Add "is DEPRECATED" trait to class/etc. (to be able to add todo tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 22, 2013
1 parent e13fa98 commit fd3e683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/traits.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ multi trait_mod:<is>(Mu:U $child, Mu:U $parent) {
).throw;
}
}
multi trait_mod:<is>(Mu:U $child, :$DEPRECATED!) {
# add COMPOSE phaser for this child, which will add an ENTER phaser to an
# existing "new" method, or create a "new" method with a call to DEPRECATED
# and a nextsame.
}
multi trait_mod:<is>(Mu:U $type, :$rw!) {
$type.HOW.set_rw($type);
}
Expand Down

0 comments on commit fd3e683

Please sign in to comment.