Refactoring: change signature should affected expect/actual
#KT-33972 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "Convert parameter to receiver" "true"
|
||||
actual open class A {
|
||||
actual open fun c(a: Int, b: String) {}
|
||||
}
|
||||
|
||||
open class B : A() {
|
||||
override fun c(a: Int, <caret>b: String) {}
|
||||
}
|
||||
|
||||
open class D : B() {
|
||||
override fun c(a: Int, b: String) {}
|
||||
}
|
||||
|
||||
fun test(a: Int, b: String) {
|
||||
with(A()) {
|
||||
c(a, b)
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Convert parameter to receiver" "true"
|
||||
actual open class A {
|
||||
actual open fun String.c(a: Int) {}
|
||||
}
|
||||
|
||||
open class B : A() {
|
||||
override fun String.c(a: Int<caret>) {}
|
||||
}
|
||||
|
||||
open class D : B() {
|
||||
override fun String.c(a: Int) {}
|
||||
}
|
||||
|
||||
fun test(a: Int, b: String) {
|
||||
with(A()) {
|
||||
b.c(a)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user