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
syntax.md: support multiple if-guards on same line
Consider the example:
```scala
for {
x <- 1 to 5
if true; if true; if true
} yield x
```
Note, that multiple if guards start from a new line and are not separated with a semicolon or a new line.
This code is compiled ok in Scala 3 and is a valid code according to Scala 2 syntax reference:
(though looks like there is a bug in implementation scala/bug#12323)
But it's not supported according to the Scala 3 syntax reference.
related issues:
scala/bug#12323https://youtrack.jetbrains.com/issue/SCL-13220
0 commit comments