configs icon indicating copy to clipboard operation
configs copied to clipboard

Scala 3 support

Open piotr-sumo opened this issue 3 years ago • 0 comments

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.

piotr-sumo avatar May 25 '21 14:05 piotr-sumo