// IGNORE_BACKEND_FIR: JVM_IR fun box(): String { fun foo(): String { fun bar() = "OK" val ref = ::bar return ref() } val ref = ::foo return ref() }