Change default parameter rendering in decompiled text
So the code does not contain syntax errors
This commit is contained in:
@@ -9,5 +9,5 @@ internal val p: kotlin.Int /* compiled code */
|
||||
|
||||
internal fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal fun kotlin.Int.plus(i: kotlin.Int): kotlin.Int { /* compiled code */ }
|
||||
internal fun kotlin.Int.plus(i: kotlin.Int /* = compiled code */): kotlin.Int { /* compiled code */ }
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ fun f() {}
|
||||
val p = 3
|
||||
private var i = 2
|
||||
|
||||
fun Int.plus(i: Int) = this + i
|
||||
fun Int.plus(i: Int = 1) = this + i
|
||||
|
||||
class ShouldNotBeVisible1
|
||||
trait ShouldNotBeVisible2
|
||||
|
||||
@@ -23,7 +23,7 @@ package testData.libraries
|
||||
|
||||
[public fun func(a: kotlin.Int, b: kotlin.Int): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(a: kotlin.Int, b: kotlin.String = /* compiled code */): kotlin.Unit { /* compiled code */ }]
|
||||
[public fun func(a: kotlin.Int, b: kotlin.String /* = compiled code */): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(str: kotlin.String): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user