diff options
Diffstat (limited to '05-types.md')
-rw-r--r-- | 05-types.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/05-types.md b/05-types.md index 3f9ca809f5..1d6fe8579f 100644 --- a/05-types.md +++ b/05-types.md @@ -232,10 +232,10 @@ implement other traits). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.scala} case class Tuple$n$[+T1, … , +$T_n$](_1: T1, … , _n: $T_n$) -extends Product_n[T1, … , $T_n$] {} +extends Product_n[T1, … , $T_n$] trait Product_n[+T1, … , +$T_n$] { - override def arity = $n$ + override def productArity = $n$ def _1: T1 … def _n: $T_n$ |