MMTMMT Docs
Diagnostics

S019

alert constructor outside an alert declaration

S019

The alert(...) constructor is declaration sugar and exists only as the direct initializer of an alert declaration. Declare the alert with alert name = alert(...) and use the binding.

Failing example

script "conf"

setup a = alert(title: "Breakout")

Corrected example

script "fixed"
alert breakout = alert(title: "Breakout")

On this page