CsWinRT
CsWinRT copied to clipboard
Proposal: AsyncInfo.Run scenario should be improved when implementation uses generated code
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