[PL] ABI compatibility tests for reworked partial linkage
This commit is contained in:
committed by
Space Team
parent
2a4d880037
commit
4f1155b06f
@@ -0,0 +1,21 @@
|
||||
open class RemovedClass {
|
||||
val p1 = "p1"
|
||||
fun f1() = "f1"
|
||||
}
|
||||
|
||||
interface RemovedInterface {
|
||||
val p1: String
|
||||
val p2 get() = "p2"
|
||||
fun f1(): String
|
||||
fun f2() = "f2"
|
||||
}
|
||||
|
||||
class ClassWithChangedMembers {
|
||||
fun removedFun() = "removedFun"
|
||||
fun changedFun(x: String) = x
|
||||
}
|
||||
|
||||
interface InterfaceWithChangedMembers {
|
||||
fun removedFun() = "removedFun"
|
||||
fun changedFun(x: String) = x
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
//open class RemovedClass {
|
||||
// val p1 = "p1"
|
||||
// fun f1() = "f1"
|
||||
//}
|
||||
|
||||
//interface RemovedInterface {
|
||||
// val p1: String
|
||||
// val p2 get() = "p2"
|
||||
// fun f1(): String
|
||||
// fun f2() = "f2"
|
||||
//}
|
||||
|
||||
class ClassWithChangedMembers {
|
||||
// fun removedFun() = "removedFun"
|
||||
// fun changedFun(x: String) = x
|
||||
fun changedFun(x: Int) = x.toString()
|
||||
}
|
||||
|
||||
interface InterfaceWithChangedMembers {
|
||||
// fun removedFun() = "removedFun"
|
||||
// fun changedFun(x: String) = x
|
||||
fun changedFun(x: Int) = x.toString()
|
||||
}
|
||||
@@ -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