configs
configs copied to clipboard
Scala 3 support
I have the following line in my code:
private val deployments = Deployments(config.get[List[Deployment]]("deployments").valueOrElse(List.empty))
where Deployment
is a case class with some String fields and Deployments
is a case class with one field List[Deployment]
.
Compilation of the code pasted above fails with
[error] 21 | private val deployments = Deployments(config.get[List[Deployment]]("deployments").valueOrElse(List.empty))
[error] | ^
[error] |Reference to method errorJavaListConfigReader in class ConfigReaderInstances0 should not have survived,
[error] |it should have been processed and eliminated during expansion of an enclosing macro or term erasure.