CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Proposal: AsyncInfo.Run scenario should be improved when implementation uses generated code

Open manodasanW opened this issue 7 months ago • 0 comments
trafficstars

Summary

Today, if the implementation with the AsyncInfo.Run lambda uses other generated code from another generator, we apparently fail to analyze the entire function and generate the necessary vtables for the task adapter classes. But this might be able to be improved if it is in a return statement where we can look at the return type and use that, or maybe we can issue a diagnostic if that fails too.

Rationale

Improve developer experience in these scenarios.

Important Notes

No response

Open Questions

No response

manodasanW avatar Apr 04 '25 23:04 manodasanW