Skip to content

Commit

Permalink
Moved the message about scalac -Yretain-trees (#1043)
Browse files Browse the repository at this point in the history
Now it appears in the "Automatic Derivation and case class default field values" as well
  • Loading branch information
lachezar authored Nov 5, 2023
1 parent 7554a86 commit b5b9e64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/decoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ implicit val decoder: JsonDecoder[Entity] =
"""{ "id": 42, "related": null }""".fromJson[Entity]
```

_Note: If you’re using Scala 3 and your case class is defining default parameters, `-Yretain-trees` needs to be added to `scalacOptions`._

## ADTs

Say we extend our data model to include more data types
Expand Down

0 comments on commit b5b9e64

Please sign in to comment.