arrow-kt / arrow

Λrrow - Functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
6.13k stars 442 forks source link

@optics generates bad code for class named Object #3474

Open ajrouvoet opened 1 month ago

ajrouvoet commented 1 month ago

A similar problem occurs when a class is called Object (which is permitted), in which optics generates a function with parameter named object (which is not permitted).

Originally posted by @ajrouvoet in https://github.com/arrow-kt/arrow/issues/3399#issuecomment-2233547352