Open wsargent opened 2 years ago
I've put together an isolated test case https://github.com/wsargent/magnolia-issue-402
It looks like a simple workaround is to define generated implicits using implicit lazy val fooToValue = gen[Foo]
and that will resolve the NPE (presumably because by then the instant implicit is in scope)
I have a failing spec in my project that is coming from a null typeclass, and I suspect this is a bug in Magnolia
Here's the code for it:
The PR at https://github.com/tersesystems/echopraxia-plusscala/pull/1#discussion_r884392808
This is taken directly from https://github.com/softwaremill/magnolia/blob/scala2/examples/src/main/scala/magnolia1/examples/print.scala#L22 so I don't think this should be possible.