Skip to content

repl breaks multiple val definiton syntax` #1372

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

Closed
DarkDimius opened this issue Jul 8, 2016 · 0 comments
Closed

repl breaks multiple val definiton syntax` #1372

DarkDimius opened this issue Jul 8, 2016 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

taken from: http://scalapuzzlers.com/#pzzlr-017

class C
val x1,x2 = new C
val y1@y2 = new C
println(x1 == x2)
println(y1 == y2)

This code works in dotc, but does not work in repl:

scala> val x1,x2 = new C
scala> val y1@y2 = new C
scala> println(x1 == x2)
        ^
println(x1 == x2)
<console>:8: error: not found: x1
cswinter added a commit to cswinter/dotty that referenced this issue Aug 1, 2016
cswinter added a commit to cswinter/dotty that referenced this issue Aug 1, 2016
cswinter added a commit to cswinter/dotty that referenced this issue Aug 1, 2016
cswinter added a commit to cswinter/dotty that referenced this issue Aug 1, 2016
cswinter added a commit to cswinter/dotty that referenced this issue Aug 2, 2016
@smarter smarter closed this as completed in 17ba942 Aug 8, 2016
smarter added a commit that referenced this issue Aug 8, 2016
Fix #1372: Add handler for `PatDef`s to REPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants