// !DIAGNOSTICS: -UNUSED_PARAMETER // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND_WITHOUT_CHECK: JS tailrec fun foo() { bar { foo() } } fun bar(a: Any) {} fun box(): String { foo() return "OK" }