E5018 Runtime Errors
max-recursion-depth
maximum recursion depth exceeded
When this occurs
Function calls itself too many times without returning
Example error message
error[E5018]:
maximum recursion depth exceeded (limit: 1000)
How to fix
Add a base case to your recursive function to stop the recursion, or rewrite using iteration.
Related errors
No related errors.