Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't copy assoc on tighter/looser
  • Loading branch information
TimToady committed Mar 31, 2015
1 parent f96ad35 commit 2b303a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/traits.pm
Expand Up @@ -186,6 +186,7 @@ multi sub trait_mod:<is>(Routine $r, :&tighter!) {
trait_mod:<is>($r, :prec(&tighter.prec))
}
$r.prec<prec> := $r.prec<prec>.subst(/\=/, '@=');
$r.prec<assoc>:delete;
}
multi sub trait_mod:<is>(Routine $r, :&looser!) {
die "Routine given to looser does not appear to be an operator"
Expand All @@ -194,6 +195,7 @@ multi sub trait_mod:<is>(Routine $r, :&looser!) {
trait_mod:<is>($r, :prec(&looser.prec))
}
$r.prec<prec> := $r.prec<prec>.subst(/\=/, ':=');
$r.prec<assoc>:delete;
}
multi sub trait_mod:<is>(Routine $r, :$assoc!) {
trait_mod:<is>($r, :prec({ :$assoc }))
Expand Down

0 comments on commit 2b303a0

Please sign in to comment.