Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
third_party
/
skia_next
/
third_party
/
skia
/
resources
/
sksl
/
runtime_errors
/
IllegalRecursionMutual.rts
blob: de43582de1c99368f80f0e6f73b9e02e0e95ba96 [
file
] [
log
] [
blame
]
// Expect 1 error
// Straightforward mutual recursion (not allowed)
bool
is_even
(
int
n
);
bool
is_odd
(
int
n
)
{
return
n
==
0
?
false
:
is_even
(
n
-
1
);
}
bool
is_even
(
int
n
)
{
return
n
==
0
?
true
:
is_odd
(
n
-
1
);
}