b6870b4bba
It renames method parameter to match the name from the overriden method.
16 lines
266 B
Kotlin
16 lines
266 B
Kotlin
// "Rename parameter to match overridden method" "true"
|
|
abstract class A {
|
|
abstract fun foo(arg : Int) : Int;
|
|
}
|
|
|
|
trait X {
|
|
fun foo(arg : Int) : Int;
|
|
}
|
|
|
|
class B : A(), X {
|
|
override fun foo(var arg: Int) : Int {
|
|
arg += 5
|
|
return arg
|
|
}
|
|
}
|