MMTMMT Docs
Diagnostics

T008

binding a declared type name

T008

A value binding reuses a declared type name. Rename the value to keep type and value references clear.

Failing example

script "example"
type Price { value: float }
data chart = subscribe(data.ohlcv)
on chart.update { let Price = 1 }

Corrected example

script "fixed"
type Price { value: float }
data chart = subscribe(data.ohlcv)
on chart.update { let priceValue = 1 }

On this page