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
Hi - I took a look at this. It seems to be not to do with the empty line but actually to do with the round brackets. The issue is that for a statement starting with a round bracket the Scala tree parser is identifying the start as the character after the bracket. This means the MethodBodyReader is not working as it should. The indentation is a knock-on effect of this. This bug will only happen when there are two lines or more in a method, and will only affect the bracket of the first line and the indentation of all the others.
I have yet to think of a neat workaround, but will have a pop! I might also ask the Scala compiler/reflection people whether this should be considered a bug with that.
Problem
The
composeLens exercise
does not get rendered correctly.The source code:
How it looks on the web page:
The initial bracket is missing and the second line has an unintended indentation.
Screen Shots
The text was updated successfully, but these errors were encountered: