Permalink
Browse files

Add "is DEPRECATED" trait to class/etc. (to be able to add todo tests)

  • Loading branch information...
lizmat committed Oct 22, 2013
1 parent e13fa98 commit fd3e6833d7144e9b14fa28978168617fabfcf19c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/traits.pm
View
@@ -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);
}

0 comments on commit fd3e683

Please sign in to comment.