MMTMMT Docs
Diagnostics

T304

match does not cover every case

T304

A match expression must cover every possible value because it produces a result. Add the missing variants or a wildcard arm.

Failing example

script "example"
data chart = subscribe(data.ohlcv)
on chart.update { let value = match true { true => 1 } }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let value = match true { true => 1
  false => 0 } }

On this page