Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix infinite recursion in 42 x Int
  • Loading branch information
moritz committed Aug 30, 2012
1 parent cd02586 commit 2311372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Stringy.pm
Expand Up @@ -14,7 +14,7 @@ multi infix:<~>(\a, \b) { a.Stringy ~ b.Stringy }
proto infix:<x>(|) { * }
multi infix:<x>() { fail "No zero-arg meaning for infix:<x>" }
multi infix:<x>($x) { $x.Stringy }
multi infix:<x>($s, $n) { $s.Stringy x $n.Int }
multi infix:<x>($s, $n) { $s.Stringy x ($n.Int // 0) }

proto infix:<leg>(|) { * }
multi infix:<leg>(\a, \b) { a.Stringy cmp b.Stringy }
Expand Down

0 comments on commit 2311372

Please sign in to comment.