[FIR] Use FirDefaultOverridesBackwardCompatibilityHelper with common metadata compilation

Also, use it with JS compilation

^KT-57735 Fixed
This commit is contained in:
Ivan Kochurkin
2023-04-06 20:08:56 +02:00
parent 4969a0e4f6
commit 9a5cc39588
19 changed files with 201 additions and 106 deletions
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/noVirtualFileHiddenForMemberWithPlatformDependentAnnotation.kt
-d
$TEMP_DIR$
-language-version
2.0
@@ -0,0 +1,5 @@
expect abstract class ConcurrentMap<Key, Value>(
initialCapacity: Int = 32
) : MutableMap<Key, Value> {
fun remove(key: Key, value: Value): Boolean
}
@@ -0,0 +1,2 @@
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
OK
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// ISSUE: KT-57858
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
import kotlin.internal.PlatformDependent
interface I {
@PlatformDependent
fun f() {}
}
class C : I {
fun <!VIRTUAL_MEMBER_HIDDEN!>f<!>() {}
}
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// ISSUE: KT-57858
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
import kotlin.internal.PlatformDependent
interface I {
@PlatformDependent
fun f() {}
}
class C : I {
fun <!VIRTUAL_MEMBER_HIDDEN!>f<!>() {}
}