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
Toshihiro Nakamura
02/11/2023, 11:32 PM
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`(