blob: 4c87e38acc06b6e78ece144d2a6e62c5abb214c3 [file] [log] [blame]
// !SANITIZE_PARENTHESES
// IGNORE_BACKEND: JS, NATIVE
// !LANGUAGE: +JsAllowInvalidCharsIdentifiersEscaping
// Sanitization is needed here because DxChecker reports ParseException on parentheses in names.
class `()` {
fun `()`(): String {
fun foo(): String {
return bar { baz() }
}
return foo()
}
fun baz() = "OK"
}
fun bar(p: () -> String) = p()
fun box(): String {
return `()`().`()`()
}