Skip to content

Commit 5c1d9b3

Browse files
Update _overviews/tutorials/binary-compatibility-for-library-authors.md
Co-authored-by: Julien Richard-Foy <julien@richard-foy.fr>
1 parent 293a0bd commit 5c1d9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/tutorials/binary-compatibility-for-library-authors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ alice match
219219
~~~
220220
Later in time, you can amend the original case class definition to, say, add an optional `address` field. You
221221
* add a new field `address` and a custom `withAddress` method,
222-
* add the former constructor signature as a secondary constructor, private to the companion object. This step is necessary because the public `apply` method in the companion object calls the former constructor, which was effectively public in the bytecode produced by the compiler.
222+
* add the former constructor signature as a secondary constructor, private to the companion object. This step is necessary because the compilers currently emit the private constructors as public constructors in the bytecode (see [#12711](https://github.com/scala/bug/issues/12711) and [#16651](https://github.com/lampepfl/dotty/issues/16651)).
223223

224224
{% tabs case_class_compat_2 %}
225225
{% tab 'Scala 3 Only' %}

0 commit comments

Comments
 (0)