Fix generate constructor throwing in a cross-language case
We tried to locate a constructor to delegate to; in that case we would grab the types of the constructor and make sure the original call site actually can use those types. In the cross-language case, we'd mix up types from different languages. The correct behavior here is to map the candiate type back to the language of the call site, since it's the call site's language rules that matter. Fixes https://github.com/dotnet/roslyn/issues/49850
Showing
想要评论请 注册 或 登录