ascot diagnostics

S4933

Warning: Put {wanted} after {

Under {"openBrace":{"newlineAfter":true}}, a block’s first command on the line of its {, If x { Set y = 1; under false, one on the next line. IRIS accepts either layout; break the line after the brace, or join it.

IRIS compiles the example. Checked with the style {"openBrace":{"newlineAfter":true}}.

Class Demo.BodyBreak
{

ClassMethod Sign(n As %Integer) As %Integer
{
    If n < 0 { Quit -1 } //! S4933
    Quit 1
}

}

All diagnostics