Hi, I have a question regarding Optics
I was reading
https://arrow-kt.io/docs/optics/dsl/ and wanted to try the first examle (Street, Address, Company, Employee data classes) but it doesn't work as in the documentation.
When I leave the example as is, I get the error:
error: @optics annotated class com.example.Player needs to declare companion object.
In my build.gradle I added the following dependencies:
implementation("io.arrow-kt:arrow-optics:0.13.2")
kapt("io.arrow-kt:arrow-meta:0.13.2")
Am I doing something wrong or is this just missing in the example code snippet?
In this question
https://stackoverflow.com/questions/58243913/arrowkt-optics-annotation-not-generating-code they use arrow 0.10.0 and here it is still required and it looks to me, that back then it was still in the documentaion. So I would guess, that the companion object isn't required anymore in 0.13.2. Or am I wrong?