[IR] Fix calculation of receiver type for properies in expect/actual context
^KT-62926 Fixed
This commit is contained in:
committed by
Space Team
parent
9cef8a2133
commit
7d685522ce
+1
-4
@@ -2,9 +2,6 @@
|
||||
// IGNORE_NATIVE_K1: mode=ONE_STAGE_MULTI_MODULE
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
// Ignore until KT-62926 is fixed
|
||||
// IGNORE_BACKEND_K2: ANY
|
||||
|
||||
// MODULE: common
|
||||
// TARGET_PLATFORM: Common
|
||||
// FILE: commonMain.kt
|
||||
@@ -48,4 +45,4 @@ actual var String.l: String
|
||||
|
||||
actual typealias S = String
|
||||
|
||||
fun box() = test("O") + k()
|
||||
fun box() = test("O") + k()
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K1: JVM, JVM_IR, JS, JS_IR, JS_IR_ES6, WASM
|
||||
// IGNORE_NATIVE_K1: mode=ONE_STAGE_MULTI_MODULE
|
||||
// ISSUE: KT-62926
|
||||
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
fun commonBox(): String {
|
||||
return "".k + 1.k
|
||||
}
|
||||
|
||||
expect val Int.k: String
|
||||
expect val String.k: String
|
||||
|
||||
// MODULE: platform()()(common)
|
||||
// FILE: platform.kt
|
||||
actual val Int.k: String get() = "K"
|
||||
actual val String.k: String get() = "O"
|
||||
|
||||
fun box(): String {
|
||||
return commonBox()
|
||||
}
|
||||
Reference in New Issue
Block a user