Skip to content
Browse files

Make sure we parameterize parent specification

By adding a genetic trait handler that handles this case.  Fixes R#2611
  • Loading branch information...
lizmat committed Jan 18, 2019
1 parent 9295616 commit 35ecfc8e243da1d7ff76784a1f546a0f989b4992
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/traits.pm6
@@ -37,6 +37,10 @@ multi sub trait_mod:<is>(Mu:U $child, Mu:U $parent) {
multi sub trait_mod:<is>(Mu:U \child, Mu:U \parent, @subtypes) {
# re-dispatch properly parameterized R#2611
multi sub 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

0 comments on commit 35ecfc8

Please sign in to comment.
You can’t perform that action at this time.