ascot diagnostics

S6829

Warning: Indent this line {wanted}, not {found}

Under {"indent":{"unit":" "}}, a command, { or } that begins its line and is not indented to its depth is reported. The unit is one level, given as spaces or a tab. A method body’s or a label’s commands sit one level in, and each { } block adds a level. A brace that begins its line sits at its block’s depth. Indent the line as the message says.

IRIS compiles the example. Checked with the style {"indent":{"unit":" "}}.

Class Demo.Indentation
{

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

}

All diagnostics