File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -419,11 +419,13 @@ object Unrolled{
419
419
420
420
Notes:
421
421
422
- 1 . ` .unapply ` does not need to be duplicated in Scala 3.x, as its signature
422
+ 1 . ` @unroll ` ed ` case class ` es are fully binary and backwards compatible in Scala 3, but not in Scala 2
423
+
424
+ 2 . ` .unapply ` does not need to be duplicated in Scala 3.x, as its signature
423
425
` def unapply(x: Unrolled): Unrolled ` does not change when new ` case class ` fields are
424
426
added.
425
427
426
- 2 . Even in Scala 2.x, where ` def unapply(x: Unrolled): Option[TupleN] ` is not
428
+ 3 . Even in Scala 2.x, where ` def unapply(x: Unrolled): Option[TupleN] ` is not
427
429
binary compatible, pattern matching on ` case class ` es is already binary compatible
428
430
to addition of new fields due to
429
431
[ Option-less Pattern Matching] ( https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html ) .
You can’t perform that action at this time.
0 commit comments