Hey, how could I deprecate a single function param...
# library-development
h
Hey, how could I deprecate a single function parameter? Example
Copy code
fun createSimulation(
    @Deprecated("use env.enableConsoleLogger() instead")
    enableConsoleLogger: Boolean = false,
    durationUnit: DurationUnit = MINUTES
){ print() }
It seems that the @Deprecated is not applicable for parameters.
e
deprecate the whole function and add a new overload