[AA] return expect declaration for "implicit" actual

If actual declaration is broken (missing explicit `actual` keyword),
expect declaration still makes sense.
This way, we allow refactorings on broken code

^KT-65191 fixed
This commit is contained in:
Anna Kozlova
2024-02-26 13:49:33 +01:00
committed by Space Team
parent 98dba48fde
commit e650ba9855
8 changed files with 43 additions and 6 deletions
@@ -0,0 +1,14 @@
// !LANGUAGE: +MultiPlatformProjects
// MODULE: commonMain
// FILE: Common.kt
package sample
expect class Foo(n: Int)
// MODULE: androidMain()()(commonMain)
// FILE: JvmAndroid.kt
package sample
actual class Foo<caret>(n: Int) {
val k = n
}
@@ -0,0 +1,2 @@
expected symbols:
Common.kt : constructor(n: kotlin.Int)