Browse files

Make :when/:recursive play nicely.

  • Loading branch information...
1 parent da979a4 commit 1d02bc6f02deff0294a1859b30e8bfa03e0ddecc tcurtis committed Jul 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tree/Optimizer/Pass.nqp
View
2 src/Tree/Optimizer/Pass.nqp
@@ -38,7 +38,7 @@ method run ($tree) {
if $!recursive {
self.generate-transformer.walk($tree);
} elsif pir::defined__IPP($!when) {
- my $/ := $tree ~~ $!when;
+ my $/ := $!when.ACCEPTS($tree, :exact(1));
if $/ {
$!transformation($/);
} else {

0 comments on commit 1d02bc6

Please sign in to comment.