Diagnostics
P018
bracket destructuring is not supported
P018
Square brackets no longer wrap destructuring targets. Write the comma-separated targets without brackets.
Failing example
script "conf"
fn pair() -> (int, int) {
return 1, 2
}
on chart.update {
let [a, b] = pair()
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
fn pair() -> (int, int) { return 1, 2 }
on chart.update { let a, b = pair() }