PHondogo
10/07/2025, 3:32 PM// suppose there is function
fun test(lambda: (Type1,Type2, ...) -> ReturnType) {...}
// in IR compiler plugin there is code
val testFun: IrFunction = <get test function>
val lambdaArg: IrType = testFun.valueParameters[0]
// lambdaArg is type of lambda. How to get return type of lambdaArg?jw
10/07/2025, 3:47 PMjw
10/07/2025, 3:52 PMPHondogo
10/07/2025, 3:55 PMWojciech Litewka
10/07/2025, 3:55 PM(lambdaArg as IrSimpleType).arguments.last()