We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afb8031 + e271f44 commit c00b289Copy full SHA for c00b289
docs/docs/reference/other-new-features/creator-applications.md
@@ -12,8 +12,8 @@ Scala 3 generalizes this scheme to all concrete classes. Example:
12
class StringBuilder(s: String):
13
def this() = this("")
14
15
-StringBuilder("abc") // same as new StringBuilder("abc")
16
-StringBuilder() // same as new StringBuilder()
+StringBuilder("abc") // old: new StringBuilder("abc")
+StringBuilder() // old: new StringBuilder()
17
```
18
19
This works since a companion object with two `apply` methods
0 commit comments