Re-enabled disabled test

This commit is contained in:
Alexander Gorshenev
2021-01-29 22:01:19 +03:00
parent 16b3fedcd4
commit 6265ac8c19
2 changed files with 6 additions and 13 deletions
@@ -2,15 +2,12 @@
// FILE: A.kt
// VERSION: 1
open class X {
val hasFoo = false
}
open class X
// FILE: B.kt
// VERSION: 2
open class X {
val hasFoo = false
open fun foo(): String = "new member"
}
@@ -33,15 +30,6 @@ fun qux(): String = Y().foo()
// MODULE: mainLib(lib)
// FILE: mainLib.kt
fun qux(): String {
val y = Y()
if (y.hasFoo()) {
foo()
} else {
"no foo"
}
}
fun lib(): String = when {
qux() != "new member" -> "fail 1"
@@ -175,6 +175,11 @@ public class JsKlibBinaryCompatibilityTestGenerated extends AbstractJsKlibBinary
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")
public void testNewOverrideMember() throws Exception {
runTest("compiler/testData/binaryCompatibility/klibEvolution/newOverrideMember.kt");