Safe delete: when invoking on expect, delete also relevant actual

Partial fix of KT-15666
This commit is contained in:
Mikhail Glukhikh
2018-06-27 13:04:24 +03:00
parent 465d5c077e
commit 50e70e4638
15 changed files with 34 additions and 45 deletions
@@ -1,4 +1,3 @@
package test
open class Foo
actual class ChildOfFoo : Foo()
@@ -1,4 +1,3 @@
package test
open class Foo
actual class ChildOfFoo : Foo()
@@ -1,9 +1,6 @@
package test
actual class Foo {
fun foo(n: Int) {
}
}
fun test(f: Foo) {
@@ -1,9 +1,6 @@
package test
actual class Foo {
fun foo(n: Int) {
}
}
fun test(f: Foo) {
@@ -1,7 +1,6 @@
package test
actual class Foo {
val foo get() = 1
}
fun test(f: Foo) = f.foo
@@ -1,7 +1,6 @@
package test
actual class Foo {
val foo get() = 2
}
fun test(f: Foo) = f.foo
@@ -1,7 +1,6 @@
package test
actual open class Foo {
constructor(n: Int)
}
fun test() = Foo(1)
@@ -1,7 +1,6 @@
package test
actual open class Foo {
constructor(n: Int)
}
fun test() = Foo(2)
@@ -1,9 +1,5 @@
package test
fun foo(n: Int) {
}
fun test() {
foo(1)
}
@@ -1,9 +1,5 @@
package test
fun foo(n: Int) {
}
fun test() {
foo(1)
}
@@ -1,5 +1,3 @@
package test
val foo get() = 1
fun test() = foo
@@ -1,5 +1,3 @@
package test
val foo get() = 2
fun test() = foo