blob: 8bc4176adad4516c5920b5c58714cd35d57ce9c0 [file]
// ISSUE: KT-75902
// NO_CHECK_LAMBDA_INLINING
// FILE: foo.kt
inline fun <T, R> foo(t: T, f: (T) -> R): R = f(t)
// FILE: box.kt
fun <S> bar(s: S): S {
return foo(s) { value ->
object {
fun method1(): S {
return object {
fun method2(): S {
return s
}
}.method2()
}
}.method1()
}
}
fun box(): String {
return bar("OK")
}