Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Macwire fails to wire dependencies declared as implicit
import com.softwaremill.macwire.Macwire
class ServiceDependency
class Service(implicit val otherDependency : ServiceDependency)
trait Module extends Macwire {
lazy val otherDependency = new ServiceDependency
lazy val service = wire[Service]
}
object Beans extends Module
object ServiceApp extends App {
println(Beans.service.getClass.getSimpleName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.