[PL] ABI compatibility tests for reworked partial linkage
This commit is contained in:
committed by
Space Team
parent
2a4d880037
commit
4f1155b06f
@@ -0,0 +1,23 @@
|
||||
fun function(): String = "FAIL: function"
|
||||
fun removedFunction(): String = "FAIL: removedFunction"
|
||||
val property: String get() = "FAIL: property"
|
||||
val removedProperty: String get() = "FAIL: removedProperty"
|
||||
|
||||
class A {
|
||||
fun function(): String = "FAIL: A.function"
|
||||
fun removedFunction(): String = "FAIL: A.removedFunction"
|
||||
val property1: String get() = "FAIL: property1"
|
||||
val removedProperty1: String get() = "FAIL: removedProperty1"
|
||||
val property2: String = "FAIL: property2"
|
||||
val removedProperty2: String = "FAIL: removedProperty2"
|
||||
}
|
||||
|
||||
open class C {
|
||||
open fun removedOpenFunction(): String = "FAIL: C.removedOpenFunction"
|
||||
open val removedOpenProperty: String get() = "FAIL: C.removedOpenProperty"
|
||||
}
|
||||
|
||||
interface I {
|
||||
fun removedOpenFunction(): String = "FAIL: I.removedOpenFunction"
|
||||
val removedOpenProperty: String get() = "FAIL: I.removedOpenProperty"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
fun function(): String = "OK"
|
||||
//fun removedFunction(): String = "FAIL: removedFunction"
|
||||
val property: String get() = "OK"
|
||||
//val removedProperty: String get() = "FAIL: removedProperty"
|
||||
|
||||
class A {
|
||||
fun function(): String = "OK"
|
||||
//fun removedFunction(): String = "FAIL: A.removedFunction"
|
||||
val property1: String get() = "OK"
|
||||
//val removedProperty1: String get() = "FAIL: removedProperty1"
|
||||
val property2: String = "OK"
|
||||
//val removedProperty2: String = "FAIL: removedProperty2"
|
||||
}
|
||||
|
||||
open class C {
|
||||
//open fun removedOpenFunction(): String = "FAIL: C.removedOpenFunction"
|
||||
//open val removedOpenProperty: String get() = "FAIL: C.removedOpenProperty"
|
||||
}
|
||||
|
||||
interface I {
|
||||
//fun removedOpenFunction(): String = "FAIL: I.removedOpenFunction"
|
||||
//val removedOpenProperty: String get() = "FAIL: I.removedOpenProperty"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
STEP 0:
|
||||
dependencies: stdlib
|
||||
STEP 1:
|
||||
dependencies: stdlib
|
||||
modifications:
|
||||
U : l1.kt.1 -> l1.kt
|
||||
Reference in New Issue
Block a user