Similar to the widened-sign-extension warning, the compiler gives a warning in this location and allows a cast to suppress it. we need to not remove the cast here:
private static Cci.IAssemblyReference TryGetAssemblyScope(NamespaceSymbol @namespace, Emit.PEModuleBuilder moduleBuilder, DiagnosticBag diagnostics)
{
AssemblySymbol containingAssembly = @namespace.ContainingAssembly;
- if ((object)containingAssembly != null && (object)containingAssembly != moduleBuilder.CommonCompilation.Assembly)
+ if ((object)containingAssembly != null && containingAssembly != moduleBuilder.CommonCompilation.Assembly)
{
var referenceManager = ((CSharpCompilation)moduleBuilder.CommonCompilation).GetBoundReferenceManager();
Similar to the widened-sign-extension warning, the compiler gives a warning in this location and allows a cast to suppress it. we need to not remove the cast here: