Skip to content

Commit 79ff4c3

Browse files
Drop the "with after classes" paragraph
1 parent b6c165c commit 79ff4c3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/blog/_posts/2021-02-17-scala3-rc1.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ This way expresses the intent of the idiom in a more verbose and easy to read wa
8181

8282
For discussion, see [PR #11231](https://github.com/lampepfl/dotty/pull/11231), and the [documentation](https://dotty.epfl.ch/docs/reference/dropped-features/wildcard-init.html) is available on our website.
8383

84-
# Allow `with` after class
85-
[PR #11157](https://github.com/lampepfl/dotty/pull/11157) brings an syntactic change whereby you have to write `with` instead of `:` to signify the start of the body of a class definition. For example:
86-
87-
```scala
88-
object Foo with // Was previously `object Foo:`
89-
val x = 10
90-
```
91-
9284
# Eta-expand companion object if functions are expected
9385
Starting from RC1, we no longer generate a function parent for companions of case classes. Which means, for example, that given `case class Foo(x: Int)`, you won't be able to use `Foo` in a position where a function is expected:
9486

0 commit comments

Comments
 (0)