Ahmed Mourad
02/19/2024, 3:35 PMdmitriy.novozhilov
02/19/2024, 3:52 PMYoussef Shoaib [MOD]
02/19/2024, 3:56 PMDeprecated(DeprecationLevel.ERROR)
or HIDDEN
on the declarations themselves. I don't think there's a way to add annotations in a compiler plugin though, so you'd have to do this manuallyAhmed Mourad
02/19/2024, 4:06 PMSyntheticResolveExtension#generateSyntheticMethods
? are there any plans to add it in the future?dmitriy.novozhilov
02/19/2024, 5:08 PMSyntheticResolveExtension
was introduced to provide a way to generate new declarations, not to remove existing
So I'm curious how did you managed to do it
are there any plans to add it in the future?No such plans But you can create a ticket with a description of your usecase
Edoardo Luppi
02/20/2024, 11:09 AMEdoardo Luppi
02/20/2024, 11:09 AMEdoardo Luppi
02/20/2024, 11:09 AMEdoardo Luppi
02/20/2024, 11:11 AMdmitriy.novozhilov
02/20/2024, 11:42 AMcopy
method actually is a known design problem, and we a looking to options to fix it on the language level
Closest related ticket: KT-29675Ahmed Mourad
02/20/2024, 3:11 PMAhmed Mourad
02/20/2024, 3:17 PMdmitriy.novozhilov
02/20/2024, 3:18 PMAhmed Mourad
02/20/2024, 3:23 PMArjan van Wieringen
02/20/2024, 7:29 PMAhmed Mourad
02/20/2024, 9:46 PMcopy
method now throws exceptions as well which's a bit unorthodox.
I actually wrote an article on the matter and that was one of the cases discussed:
https://medium.com/swlh/value-based-classes-and-error-handling-in-kotlin-3f14727c0565