Direct inheritance of trait fails, but proxy works

前端 未结 1 516
南笙
南笙 2021-01-22 05:07

Why does adding a proxy trait work and direct inheritance fail?

I\'ve created a runnable project over on github

if you clone the repo and run sbt console

相关标签:
1条回答
  • 2021-01-22 05:40

    One additional solution that wasn't suitable for the linked question is to make AppConfig.name a lazy val.

    0 讨论(0)
提交回复
热议问题