// FIR_IDENTICAL fun test(f: (T) -> T?) { doFun(f.ext()) } fun Function1.ext(): Function0 = throw Exception() fun doFun(f: () -> R?) = f