Open joroKr21 opened 6 years ago
Yes, that's an interesting case. It wouldn't be impossible to include a configurable limit, but it seems like a hack, so I'm not sure it's the best solution.
Other ideas welcome...
Miles solved it in his byname implicits PR scala/scala#6050
Here's some food for thought:
... still waiting for typer ... (maybe it will OOM eventually)
A problem for most type class derivation libs. I know why this happens but not sure what can be done. The hammer for endless loops is a (configurable?) max depth. Is there a better way?