Files
kotlin/compiler/testData/codegen/bytecodeText/mangling/parentheses.kt
Mads Ager 79840a05b2 Fix test expectations.
Do not check for occurrences of "this" on the current backend.
I accidentally unified the checking for the two backends
without checking that it worked (used the wrong test suite to
test).
2020-01-21 11:26:02 +01:00

26 lines
375 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)`()
}
// One instance of each is in kotlin.Metadata.d2
// 1 \(X\)
// 1 \(Y\)
// JVM_IR_TEMPLATES
// 4 \$this