Hi! trying the context receivers, i got this error...
# language-evolution
c
Hi! trying the context receivers, i got this error
Copy code
object Dependency {
    val dep1: String = "1"
}

val lambda: context(Dependency)() -> Unit = {
    dep1
}
e
For lambdas you need to pass in context as a parameterr
c
this would be temporal or will be improved in the future?
e
Probably temporary and should be improved in the future
🤞 3
s
@carbaj0 there is a workaround for this, but you have to redefine
with
to make it work. https://gist.github.com/nomisRev/6c31a24e6d0dbf0106b10a9048162929