Re-enabled disabled test
This commit is contained in:
+1
-13
@@ -2,15 +2,12 @@
|
|||||||
// FILE: A.kt
|
// FILE: A.kt
|
||||||
// VERSION: 1
|
// VERSION: 1
|
||||||
|
|
||||||
open class X {
|
open class X
|
||||||
val hasFoo = false
|
|
||||||
}
|
|
||||||
|
|
||||||
// FILE: B.kt
|
// FILE: B.kt
|
||||||
// VERSION: 2
|
// VERSION: 2
|
||||||
|
|
||||||
open class X {
|
open class X {
|
||||||
val hasFoo = false
|
|
||||||
open fun foo(): String = "new member"
|
open fun foo(): String = "new member"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,15 +30,6 @@ fun qux(): String = Y().foo()
|
|||||||
// MODULE: mainLib(lib)
|
// MODULE: mainLib(lib)
|
||||||
// FILE: mainLib.kt
|
// FILE: mainLib.kt
|
||||||
|
|
||||||
fun qux(): String {
|
|
||||||
val y = Y()
|
|
||||||
if (y.hasFoo()) {
|
|
||||||
foo()
|
|
||||||
} else {
|
|
||||||
"no foo"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun lib(): String = when {
|
fun lib(): String = when {
|
||||||
qux() != "new member" -> "fail 1"
|
qux() != "new member" -> "fail 1"
|
||||||
|
|
||||||
+5
@@ -175,6 +175,11 @@ public class JsKlibBinaryCompatibilityTestGenerated extends AbstractJsKlibBinary
|
|||||||
runTest("compiler/testData/binaryCompatibility/klibEvolution/moveMemberUpInHierarchy.kt");
|
runTest("compiler/testData/binaryCompatibility/klibEvolution/moveMemberUpInHierarchy.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("newFakeOverride.kt")
|
||||||
|
public void testNewFakeOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/binaryCompatibility/klibEvolution/newFakeOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("newOverrideMember.kt")
|
@TestMetadata("newOverrideMember.kt")
|
||||||
public void testNewOverrideMember() throws Exception {
|
public void testNewOverrideMember() throws Exception {
|
||||||
runTest("compiler/testData/binaryCompatibility/klibEvolution/newOverrideMember.kt");
|
runTest("compiler/testData/binaryCompatibility/klibEvolution/newOverrideMember.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user