bizzabo / play-json-extensions

+22 field case class formatter and more for play-json
http://cvogt.org/play-json-extensions/api/
Other
196 stars 44 forks source link

Parameter value is never used #84

Open jsabin opened 4 years ago

jsabin commented 4 years ago

When using the extension like this:

import ai.x.play.json.Encoders.encoder
import ai.x.play.json.Jsonx
...
implicit lazy val jsonFormat: OFormat[TenantAppFilter] = Jsonx.formatCaseClass[TenantAppFilter]

and using the compiler options

scalacOptions += "-Ywarn-macros:after"

I get the following error where the parameter number is different each time I compile:

[error] TenantAppFilterUI.scala:17:81: parameter value x$6 in value $anonfun is never used
[error]   implicit lazy val jsonFormat: OFormat[TenantAppFilter] = Jsonx.formatCaseClass[TenantAppFilter]

Anyway to resolve this error short of removing the compiler option?