Open orpuente-MS opened 6 months ago
This one is tricky to address... RCA doesn't see this as recursive because there is a use of a runtime-resolved callable. Then at partial eval it will try to evaluate the call, get stuck in the infinite recursion, and fail with out of memory. On the one hand, it would be great if it could recognize and avoid this. On the other hand, it's no different than a classical infinite loop or other program that fails to terminate for classical reasons. The cycle check in RCA is best effort, but at the end of the day this seems to reduce to yet another version of the halting problem.
Describe the bug
When calling recursive operations in Base profile you get an error (this the correct behavior).
But you can get around it using the following hack. And it runs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Describe what you expect to happen, versus what actually happened.
Screenshots Correct behavior
Hack
System information