MMTMMT Docs
Diagnostics

T209

unsupported number of return types

T209

A function can return one value or a small tuple of values. Use a single type, or a tuple with no more than the allowed number of values.

Failing example

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

Corrected example

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

On this page