[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:
+1
@@ -0,0 +1 @@
|
||||
expected symbols:
|
||||
+14
@@ -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
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expected symbols:
|
||||
Common.kt : constructor(n: kotlin.Int)
|
||||
Reference in New Issue
Block a user