Right now, this will report closing { without open } on the end brace, which makes it really hard to find out where the actual error was. Indentation makes it pretty clear, so we should modify the rules to make it better:
MyClass: {
Function1: {
if (:x == :y) # this is the line with the missing {
10
} # error SHOULD be reported here
}
Function2: {
:x + :y
}
} # error is reported here
Right now, this will report
closing { without open }on the end brace, which makes it really hard to find out where the actual error was. Indentation makes it pretty clear, so we should modify the rules to make it better: