KMP: Put "prohbit actual typealias if expect has default params" under the flag

^KT-61668 Fixed

Review: https://jetbrains.team/p/kt/reviews/12062/timeline
This commit is contained in:
Nikita Bobko
2023-09-05 16:53:22 +02:00
committed by Space Team
parent 6868c95263
commit 141bc9cac9
6 changed files with 40 additions and 3 deletions
@@ -0,0 +1,17 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -ACTUAL_WITHOUT_EXPECT
// LANGUAGE: -MultiplatformRestrictions
// MODULE: m1-common
// FILE: common.kt
expect class A {
fun foo(p: String = "common")
}
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
class AImpl {
fun foo(p: String) {}
}
actual typealias A = AImpl