[FIR JS] KT-51740: Alter positioning of NO_VALUE_FOR_PARAMETER

This commit is contained in:
Nikolay Lunyak
2022-09-23 12:20:09 +03:00
parent 418c530820
commit fcd3e4f4c5
101 changed files with 340 additions and 248 deletions
@@ -4,7 +4,7 @@
expect class Ok(x: Int, y: String = "")
fun test() {
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok<!NO_VALUE_FOR_PARAMETER!>()<!>
Ok(42)
Ok(42, "OK")
}
@@ -15,7 +15,7 @@ fun test() {
actual class Ok actual constructor(x: Int, y: String)
fun testJvm() {
Ok(<!NO_VALUE_FOR_PARAMETER!>)<!>
Ok<!NO_VALUE_FOR_PARAMETER!>()<!>
Ok(42)
Ok(42, "OK")
}
@@ -16,21 +16,21 @@ expect fun topLevelFunction(x: Int, y: String = "ok")
expect fun String.topLevelExtensionFunction(x: Int, y: String = "ok")
fun test() {
A().memberFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
A().memberFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
A().memberFunction(42)
A().memberFunction(42, "ok")
topLevelFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
topLevelFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
topLevelFunction(42)
topLevelFunction(42, "ok")
"".topLevelExtensionFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
"".topLevelExtensionFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
"".topLevelExtensionFunction(42)
"".topLevelExtensionFunction(42, "ok")
}
fun A.test() {
"".companionExtensionFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
"".companionExtensionFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
"".companionExtensionFunction(42)
"".companionExtensionFunction(42, "ok")
}
@@ -53,21 +53,21 @@ actual fun topLevelFunction(x: Int, y: String) = Unit
actual fun String.topLevelExtensionFunction(x: Int, y: String) = Unit
fun testJvm() {
A().memberFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
A().memberFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
A().memberFunction(42)
A().memberFunction(42, "ok")
topLevelFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
topLevelFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
topLevelFunction(42)
topLevelFunction(42, "ok")
"".topLevelExtensionFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
"".topLevelExtensionFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
"".topLevelExtensionFunction(42)
"".topLevelExtensionFunction(42, "ok")
}
fun A.testJvm() {
"".companionExtensionFunction(<!NO_VALUE_FOR_PARAMETER!>)<!>
"".companionExtensionFunction<!NO_VALUE_FOR_PARAMETER!>()<!>
"".companionExtensionFunction(42)
"".companionExtensionFunction(42, "ok")
}