Fix param-nullchecking crash related to EmbeddedTypesManager#58825
Fix param-nullchecking crash related to EmbeddedTypesManager#58825RikkiGibson merged 1 commit intodotnet:mainfrom
Conversation
db560a4 to
2028508
Compare
| Debug.Assert(member.AdaptedSymbol.IsDefinition); | ||
| Debug.Assert(ModuleBeingBuilt.SourceModule.AnyReferencedAssembliesAreLinked); | ||
|
|
||
| if (member.AdaptedSymbol.OriginalDefinition is SynthesizedGlobalMethodSymbol) |
There was a problem hiding this comment.
SynthesizedGlobalMethodSymbol has a null ContainingType, so we avoid checking its ContainingType here.
|
@dotnet/roslyn-compiler for the second review |
How is this method affected by the parameter null checking change? Refers to: src/Compilers/CSharp/Portable/Emitter/NoPia/EmbeddedTypesManager.cs:587 in 2028508. [](commit_id = 2028508, deletion_comment = False) |
When a metadata reference with Since we now have the |
Closes #58824
Related to #36024
Need to figure out what a reproducer test case would look like.Have added a reproducer.Manually verified that the project in #58824 builds with this change (when the previous change #58822 is also included).