Open limansky opened 7 years ago
does it happen as well if you deactivate the plugin features via -P:splain:all:false
?
Yes it does. In this case it doesn't explain the error:
scala> MapReader[Bar].read(Map("s" -> "b", "n" -> "6"))
<console>:25: error: could not find implicit value for parameter ev: me.limansky.MapReader[Bar]
MapReader[Bar].read(Map("s" -> "b", "n" -> "6"))
then it's probably analogous to #4, due to the nature of the reflective hack used to hijack the compiler phases. it's likeley this isn't going to be fixed until I implement parts of the plugin in the compiler itself, which is hopefully soon.
I've found that I got compilation error in REPR when the splain plugin is enabled:
The same code without plugin works fine:
The code is available in this gist: https://gist.github.com/limansky/7c91a3deaa25fc0ec7339ea191d4a54a
It looks like the problem is reproducible only in REPR, at least the tests are compiled and passed successfully.