You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift generate error on second and third examples:
3> a+ b
repl.swift:3:3: error: consecutive statements on a line must be separated by ';'
a+ b
^
;
3> a +b
repl.swift:3:2: error: consecutive statements on a line must be separated by ';'
a +b
^
;
So, this would be expected to generate violations on first and 4th examples.
Hi
It would be great if there was a rule for enforcing whitespace around operators.
For example the following would report an error
a+b
a+ b
a +b
let a=b
The text was updated successfully, but these errors were encountered: