Eugen Martynov
03/08/2023, 11:34 AM@Deprecated("Use new one", replaceWith("newFun(param1, param2)"))
fun oldFun(param1: Int, param2: String = "test"){}
fun newFun(param1: Int, param2: String = "test){}
Will cover the calls where all params are specified and will add extra non existing param when the second param is defaulted.