[MPP] Remove irrelevant declarations from constructor.kt

^KT-50120
This commit is contained in:
sebastian.sellmair
2021-12-18 09:20:55 +01:00
committed by Space
parent 381a3e7917
commit d1ce7ae870
2 changed files with 3 additions and 19 deletions
@@ -3,12 +3,8 @@
expect class Ok(x: Int, y: String = "")
expect class FailX(x: Int, y: String = "")
expect class FailY(x: Int, y: String = "")
fun test() {
Ok()
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok(42)
Ok(42, "OK")
}
@@ -18,12 +14,8 @@ fun test() {
actual class Ok actual constructor(x: Int, y: String)
actual class FailX actual constructor(x: Int = 0, y: String)
actual class FailY actual constructor(x: Int, y: String = "")
fun testJvm() {
Ok()
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok(42)
Ok(42, "OK")
}
}
@@ -3,10 +3,6 @@
expect class Ok(x: Int, y: String = "")
expect class FailX(x: Int, y: String = "")
expect class FailY(x: Int, y: String = "")
fun test() {
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok(42)
@@ -18,10 +14,6 @@ fun test() {
actual class Ok actual constructor(x: Int, y: String)
actual class FailX actual constructor(<!ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS!>x: Int = 0<!>, y: String)
actual class FailY actual constructor(x: Int, <!ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS!>y: String = ""<!>)
fun testJvm() {
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok(42)