Michael Kaiser
09/02/2021, 11:12 AMerror: @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?stojan
09/02/2021, 11:14 AMsimon.vergauwen
09/02/2021, 11:41 AMMichael Kaiser
09/02/2021, 11:56 AMsimon.vergauwen
09/02/2021, 12:13 PMMichael Kaiser
09/02/2021, 2:43 PM