Skip to content

Fix #8762: Make REPL work with indented code #8765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 22, 2020

Fix #8762: Make REPL work with indented code

This is great even if we do not use optional braces. For instance, now you can write:

scala> if c == 1 then
  "yes"
else
  "no"

Previously, it would have stopped you after the "yes".

@odersky odersky changed the title Add repl indent Fix #8762: Make REPL work with indented code Apr 22, 2020
@odersky odersky added this to the 0.24.0-RC1 milestone Apr 22, 2020
This is great even if we do not use optional braces. For instance, now you can write:
```scala
scala> if c == 1 then
  "yes"
else
  "no"
```
Previously, it would have stopped you after the "yes".
@anatoliykmetyuk anatoliykmetyuk merged commit 012036b into scala:master Apr 22, 2020
@anatoliykmetyuk anatoliykmetyuk deleted the add-repl-indent branch April 22, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REPL should work with optional braces
2 participants