• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Expect 1 error
2
3// Straightforward mutual recursion (not allowed)
4bool is_even(int n);
5bool is_odd (int n) { return n == 0 ? false : is_even(n - 1); }
6bool is_even(int n) { return n == 0 ? true  : is_odd (n - 1); }
7