It seems that the @Deprecated is not applicable for parameters.
Thread in Slack Conversation
c
Chris Fillmore
06/10/2023, 12:27 PM
Create a second function without that parameter and mark the original as deprecated
👍 1
h
holgerbrandl
06/10/2023, 5:45 PM
That's more a workaround that does not scale. Is there a youtrack ticket I could upvote?
e
ephemient
06/14/2023, 11:13 AM
I'm not sure what you mean by "does not scale". it is the only way, deprecation or not. changing the list of parameters, even if they have defaults, even with
@JvmOverloads
, is ABI-incompatible. so if you care about migration, you need a new function. if you don't care, then just remove the parameter.