Skip to content

Commit fb06141

Browse files
committed
.
1 parent dc0417a commit fb06141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/unroll-default-arguments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ Notes:
427427
binary compatible, pattern matching on `case class`es is already binary compatible
428428
to addition of new fields due to
429429
[Option-less Pattern Matching](https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html).
430-
Thus, only direct calls to `.unapply` on an unrolled `case class` in Scala 2.x (shown below)
431-
will cause a crash if additional fields were added, or calls to `.tupled` or `.curried` on the
432-
`case class` companion `object.
430+
Thus, only calls to `.tupled` or `.curried` on the `case class` companion `object`, or direct calls
431+
to `.unapply` on an unrolled `case class` in Scala 2.x (shown below)
432+
will cause a crash if additional fields were added:
433433

434434
```scala
435435
def foo(t: (String, Int)) = println(t)

0 commit comments

Comments
 (0)