You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import com.softwaremill.macwire._
case class Config(redis: Int)
case class B(redis: Int)
trait MacWireComponents2 {
def int: Int
lazy val config = wire[Config]
lazy val b = {
val redis = config.redis
B(redis)
}
}
throws
[error] java.lang.AssertionError: assertion failed:
[error] transformCaseApply: name = config tree = config / class scala.reflect.internal.Trees$Ident
[error] while compiling: MacWireComponents2.scala
[error] during phase: refchecks
[error] library version: version 2.13.1
[error] compiler version: version 2.13.1
adding explicit type to config works around it
The text was updated successfully, but these errors were encountered:
https://scastie.scala-lang.org/OlegYch/BlI4CHhuSGOBXIQdlRJcwg/2
throws
adding explicit type to
config
works around itThe text was updated successfully, but these errors were encountered: