https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

sen

07/29/2022, 3:13 AM
Is there a way to change parameter names of extension functions? Say we have:
Copy code
fun SomeClass.someFunction(param: Int) {
    // Do something...
}
We would invoke it as
Copy code
SomeClass().someFunction(5)
and in Java it would be
Copy code
KotlinClassKt.someFunction( /** this$SomeClass **/ SomeClass(), 5)
So my question is, can I change the parameter of the function?