31
其他答案建议使用"-Xlog-implicits"
选项来调试“diverging implicit expansion”错误。但是,它也在与这些错误无关的地方记录了很多暗示。有没有办法限制它只能解释产生编译错误的地方?仅对“diverging implicit expansion”有记录意义
其他答案建议使用"-Xlog-implicits"
选项来调试“diverging implicit expansion”错误。但是,它也在与这些错误无关的地方记录了很多暗示。有没有办法限制它只能解释产生编译错误的地方?仅对“diverging implicit expansion”有记录意义
如果真有这样的选择,一个可能已经在使用中看到它在这里:
https://github.com/scala/scala/pull/3669
但选择的工具似乎是grep的:
scalac -Xlog-implicits test/files/neg/t2031.scala 2>&1 | grep diverg
由于该区域是在积极发展的情况下,现在可能是提交增强请求的时候了。
完成:https://issues.scala-lang.org/browse/SI-8467 –