Safe delete: when invoking on actual, delete expect & actual neighbors
So #KT-15666 Fixed
This commit is contained in:
-1
@@ -1,4 +1,3 @@
|
||||
package test
|
||||
|
||||
expect open class Foo
|
||||
expect class ChildOfFoo : Foo()
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
package test
|
||||
|
||||
actual open class Foo
|
||||
actual class ChildOfFoo : Foo()
|
||||
Vendored
-1
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
fun foo(n: Int)
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
|
||||
Vendored
-3
@@ -1,9 +1,6 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
|
||||
Vendored
-1
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
expect class Foo {
|
||||
val foo: Int
|
||||
}
|
||||
|
||||
fun test(f: Foo) = f.foo
|
||||
Vendored
-1
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
actual class Foo {
|
||||
actual val foo get() = 2
|
||||
}
|
||||
|
||||
fun test(f: Foo) = f.foo
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
expect open class Foo {
|
||||
constructor(n: Int)
|
||||
}
|
||||
|
||||
fun test() = Foo(1)
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
actual open class Foo {
|
||||
actual constructor(n: Int)
|
||||
}
|
||||
|
||||
fun test() = Foo(2)
|
||||
-2
@@ -1,7 +1,5 @@
|
||||
package test
|
||||
|
||||
expect fun foo(n: Int)
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
}
|
||||
-4
@@ -1,9 +1,5 @@
|
||||
package test
|
||||
|
||||
actual fun foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
}
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
package test
|
||||
|
||||
expect val foo: Int
|
||||
|
||||
fun test() = foo
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
package test
|
||||
|
||||
actual val foo get() = 2
|
||||
|
||||
fun test() = foo
|
||||
Reference in New Issue
Block a user