Skip to content

Commit 8dde513

Browse files
Update docs/blog/_posts/2020-12-18-scala3-m3.md
Co-authored-by: Sébastien Doeraene <[email protected]>
1 parent 782f3cc commit 8dde513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/blog/_posts/2020-12-18-scala3-m3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ given Context = ctx
5656
You can find a discussion of the above change in the [PR #10538](https://github.com/lampepfl/dotty/pull/10538).
5757

5858
## Drop `as` in patterns
59-
Since we dropped `as` from `given`s, we lost a strong reason for having `as` at all. For this reason, we dropped them also from patterns. If previously the correct binding syntax is patterns was:
59+
Since we dropped `as` from `given`s, we lost a strong reason for having `as` at all. Therefore, we dropped `as` from patterns as well. The following syntax, valid in Scala 3.0.0-M2, is not accepted anymore:
6060

6161
```scala
6262
case opt as Some(foo)

0 commit comments

Comments
 (0)