-
Notifications
You must be signed in to change notification settings - Fork 68
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
Interaction of if and for #46
Comments
The problem does not reproduced with the version 20130403.1734. Assignments with tuple patterns without val keywords are still indented incorrectly after parenthesis.
|
It's worse
|
As for the
The language specification seems to say it's invalid. See section 6.19 in http://www.scala-lang.org/docu/files/ScalaReference.pdf It seems to say, the val keyword is required for the assignment expression. |
Though ScalaReference.pdf is not updated, val keyword in for comprehension is deprecated in 2.10. Example:
Output (Scala 2.10.0):
|
right. re: the antiquated spec, see https://issues.scala-lang.org/browse/SI-4918 |
Oh how I wish somebody would update the spec. |
The text was updated successfully, but these errors were encountered: