Files
Nikita Bobko 4120d6a8aa [FIR] Search expect for actual only in dependsOn dependencies
Before this commit, the expect-actual resolver could find expects in
regular dependencies

Note: The appeared `VIRTUAL_MEMBER_HIDDEN` in
compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/FakeOverrides.kt
isn't caused by my change. It's caused by fixing the testData dependency
syntax notation.

The testData improperly used regular dependency syntax notation, while
it should have been using dependsOn

Before:
    Regular dependency syntax notation

    // MODULE: androidMain(commonMain)

After:
    dependsOn dependency syntax notation

    // MODULE: androidMain()()(commonMain)
2024-02-22 16:06:35 +00:00

39 lines
462 B
Kotlin
Vendored

// !LANGUAGE: +MultiPlatformProjects
// MODULE: m1-common
// FILE: common.kt
expect open class A() {
fun foo()
val x: Int
}
open class B : A()
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
actual open class A {
actual fun foo() {}
fun bar() {}
actual val x = 42
}
class C : B() {
fun test() {
foo()
bar()
x + x
}
}
class D : A() {
fun test() {
foo()
bar()
x + x
}
}