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

Parser unnecessarily lenient to multiple expressions on one line #446

Closed
lihaoyi opened this Issue Aug 22, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@lihaoyi
Owner

lihaoyi commented Aug 22, 2016

The following snippet works and is treated as two separate statements, though it really shouldn't compile at all, and does not in the normal Scala REPL or normal Scala files. The code we are using to split our block into statements and mangle them to add the res_* assignments is probably being too lenient.

Welcome to the Ammonite Repl COMMIT-90afc77
(Scala 2.11.8 Java 1.8.0_102)
haoyi-haoyi@ "lol" "omg"
res0_0: String = "lol"
res0_1: String = "omg"

@lihaoyi lihaoyi added the bug label Aug 22, 2016

@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented Aug 29, 2016

Fixed by 0097dc5

@lihaoyi lihaoyi closed this Aug 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment