MMTMMT Docs
Diagnostics

T401

function calls itself directly or indirectly

T401

User functions form a recursive call cycle, which cannot be statically bounded. Refactor the cycle into iteration or an acyclic helper chain.

Failing example

script "example"
fn recurse() { recurse() }

Corrected example

script "fixed"
fn value() -> int { return 1 }

On this page