Files
kotlin-fork/compiler/testData/codegen/bytecodeText/mangling/parentheses.kt
T
Dmitry Petrov 8f0aecce58 JVM_IR: KT-40330 Unify field names for captured 'this' with JVM
NB some cases such as captured extension receiver for an extension
lambda are not supported yet; to be discussed, to what extent should we
actually follow JVM code shape here.
2020-08-19 11:07:41 +03:00

27 lines
393 B
Kotlin
Vendored

// !SANITIZE_PARENTHESES
class `(X)` {
fun `(Y)`(): String {
fun foo(): String {
return bar { baz() }
}
return foo()
}
fun baz() = "OK"
}
fun bar(p: () -> String) = p()
fun box(): String {
return `(X)`().`(Y)`()
}
// JVM_TEMPLATES
// One instance of each is in kotlin.Metadata.d2
// 1 \(X\)
// 1 \(Y\)
// JVM_IR_TEMPLATES
// 4 this\$0