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

Fix warning about generated unused value in macro #85

Open Billzabob opened 4 years ago

Billzabob commented 4 years ago

Fixes #84 For some reason, this part of the macro get's expanded out to something like:

case _ => resolved.flatMap(((x$17) => result))

And then the compiler complains about x$17 being unused, even though it generated it :/ Seems more like a compiler/macro bug, but this is a workaround that fixes it.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.