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,11 @@
expect open class A() {
open fun c(a: Int, b: String)
}
class C : A() {
override fun c(a: Int, b: String) {}
}
public inline fun <T, R> with(receiver: T, block: T.() -> R): R {
return receiver.block()
}
@@ -0,0 +1,11 @@
expect open class A() {
open fun String.c(a: Int)
}
class C : A() {
override fun String.c(a: Int) {}
}
public inline fun <T, R> with(receiver: T, block: T.() -> R): R {
return receiver.block()
}