mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
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).
26 lines
375 B
Kotlin
Vendored
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
|