From eb7fbb486fada3ba7e6bc78ff1a12ba60bfaa0d8 Mon Sep 17 00:00:00 2001 From: Lachezar Yankov Date: Fri, 3 Nov 2023 20:41:37 +0100 Subject: [PATCH] Moved the message about scalac -Yretain-trees Now it appears in the "Automatic Derivation and case class default field values" as well --- docs/decoding.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/decoding.md b/docs/decoding.md index 8c9a1581c..e17cbfa42 100644 --- a/docs/decoding.md +++ b/docs/decoding.md @@ -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