Open narimiran opened 6 years ago
Consider a function
proc a(b: int): int = if b == 1: return b else: return b+1
Written like the above, everything works as expected.
But if you have if part on the same line, like this:
if
proc a(b: int): int = if b == 1: return b
writing else: and pressing enter, else: gets de-indented, like this:
else:
proc a(b: int): int = if b == 1: return b else:
The same happens for an else in a case
else
case
Consider a function
Written like the above, everything works as expected.
But if you have
if
part on the same line, like this:writing
else:
and pressing enter,else:
gets de-indented, like this: