MMTMMT Docs
Diagnostics

T115

nullable array element type

T115

Array element storage cannot represent nullable elements. Remove ? from the element type or use a different representation.

Failing example

script "conf"

state xs: float?[] = float[](1)
state ns: int?[] = int[](1)

data chart = subscribe(data.ohlcv)

plot out = plot.line(title: "out")

on chart.update {
  out.plot(0.0)
}

Corrected example

script "fixed"
state values: float[] = float[](1)

On this page