[K2, MPP] Introduce FunctionDefaultParametersActualizerVisitor and use it in FunctionDefaultParametersActualizer

^KT-57263 Fixed
This commit is contained in:
Ivan Kochurkin
2023-03-31 22:56:31 +02:00
committed by Space Team
parent 1073797ed3
commit b7bb9c317f
22 changed files with 167 additions and 50 deletions
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM
// IGNORE_BACKEND_K1: JVM, JVM_IR, JS, NATIVE
// KT-57181
// IGNORE_BACKEND_K2: NATIVE
// IGNORE_BACKEND_K1: JVM, JVM_IR, JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// ISSUE: KT-57181
// WASM_MUTE_REASON: EXPECT_DEFAULT_PARAMETERS
// !LANGUAGE: +MultiPlatformProjects
// ISSUE: KT-41901
@@ -0,0 +1,18 @@
// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6
// !LANGUAGE: +MultiPlatformProjects
// ISSUE: KT-57263
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: common.kt
expect val traceFormatDefault: String
expect fun Trace(format: String = traceFormatDefault): String
// MODULE: platform()()(common)
// FILE: platform.kt
actual val traceFormatDefault: String = ""
actual fun Trace(format: String) = format
fun box() = Trace("OK")
@@ -1,8 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM
// IGNORE_BACKEND_K1: JS, JVM, JVM_IR
// IGNORE_BACKEND_K1: JVM, JVM_IR, JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// KT-57181
// IGNORE_BACKEND_K2: NATIVE
// JS IR & Wasm: https://youtrack.jetbrains.com/issue/KT-51225
// !LANGUAGE: +MultiPlatformProjects
// ISSUE: KT-51156