Strange things: Kotlin complains that my function ...
# getting-started
w
Strange things: Kotlin complains that my function has a parameter that is never used. What am I supposed to do with this warning? My function must have it declared or it won't comply to the interface. The compiler should not add a noise with such a useless warning. 55 replies
Copy code
@Suppress("UNUSED_PARAMETER")
private fun onMarketRequested(data: String, trace: Trace) {…}
I hope one day Kotlin compiler will figure out the function as we see here is (indirectly) implementing an interface and such a workaround would not be necessary.