You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: This page uses the new syntax proposed for implicits that is explored in #5448. This is not yet an endorsement of that syntax, but rather a way to experiment with it.
21
-
22
20
### Deriving Types
23
21
24
22
Besides for `enums`, typeclasses can also be derived for other sets of classes and objects that form an algebraic data type. These are:
@@ -324,7 +322,7 @@ calling the `error` method defined in `scala.compiletime`.
324
322
**Example:**Here is a slightly polished and compacted version of the code that's generated by inline expansion for the derived `Eq` instance of class`Tree`.
0 commit comments