Update FindImplementationsForInterfaceMemberAsync to correctly handle...
Update FindImplementationsForInterfaceMemberAsync to correctly handle ambiguous type returns (#35853) FindImplementationsForInterfaceMemberAsync checks for forwarded types using SymbolFinder.OriginalSymbolsMatch, which expects non-null compilation for both the project containing the interface and the project containing the symbol to compare to. Until now, most instances have found equivalence without falling through, but in cases where the type forwarding isn't completely verified a non-null compilation for the interface symbol is needed as well. See VerifyForwardedTypes for the logic being used. In #35786 the type System.Text.Encoding is provided by a a NuGet reference and could be ambiguous based on the build target. The OOP service attempts to find the correct type resolution but needs the original symbol compilation to verify. Without this fix, FindAllReferences may cause a null deref and fail. Fixes #35786
Showing
想要评论请 注册 或 登录