8c95884ad2
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter) Change signature now affects overriding functions as well Ask the user whether he wants to refactor base function(s) or the selected one if appropiate Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
26 lines
286 B
Kotlin
26 lines
286 B
Kotlin
// "Add parameter to function 'f'" "true"
|
|
trait O {
|
|
fun f(a: Int)
|
|
}
|
|
|
|
trait OO : O {
|
|
override fun f(a: Int) {
|
|
}
|
|
}
|
|
|
|
trait OOO : OO {
|
|
override fun f(a: Int) {}
|
|
}
|
|
|
|
fun usage(o: O) {
|
|
o.f(1)
|
|
}
|
|
|
|
fun usage(o: OO) {
|
|
o.f(13, <caret>12)
|
|
}
|
|
|
|
fun usage(o: OOO) {
|
|
o.f(3)
|
|
}
|