Newer
Older
zweic / tests / 3 / bizarrReturn.zwei
  1. class Factorial {
  2. Int factorial2_aux(Int x, Int acc) {
  3. return if (x == 0) {
  4. acc;
  5. } else {
  6. this.factorial2_aux(x - 1, acc * x);
  7. }
  8. }
  9. }
  10.  
  11. new Factorial().factorial2_aux()