I enabled context receivers functionality in my pr...
# komapper
z
I enabled context receivers functionality in my project but the generated code doesnt compile It generates this:
Copy code
@org.komapper.annotation.KomapperExperimentalAssociation
context(org.komapper.core.dsl.query.EntityStoreContext)
fun zt.minkinator.data.Guild2.`markovConfig2`(
Which doesn't compile because
context
has to be above annotations
Expecting a top level declaration
t
Thanks for the report. This is a bug. It seems that the context specification must come above the annotation as shown below.
Copy code
context(org.komapper.core.dsl.query.EntityStoreContext)
@org.komapper.annotation.KomapperExperimentalAssociation
fun zt.minkinator.data.Guild2.`markovConfig2`(
I will release a fixed version soon.
z
thank
t