Refactoring: change signature should affected expect/actual

#KT-33972 Fixed
This commit is contained in:
Dmitry Gridin
2019-09-04 15:13:55 +07:00
parent 484dda478e
commit e3ce799993
53 changed files with 473 additions and 63 deletions
@@ -0,0 +1,18 @@
//
actual open class A {
actual open fun c(a: Int, b: String) {}
}
open class B : A() {
override fun c(a: Int, b: String) {}
}
open class D : B() {
override fun c(a: Int, b: String) {}
}
fun test(a: Int, b: String) {
with(A()) {
c(a, b)
}
}
@@ -0,0 +1,18 @@
//
actual open class A {
actual open fun String.c(a: Int) {}
}
open class B : A() {
override fun String.c(a: Int) {}
}
open class D : B() {
override fun String.c(a: Int) {}
}
fun test(a: Int, b: String) {
with(A()) {
b.c(a)
}
}