Fix nullable annotations in RuntimeTypeHandle operators
authorSantiago Fernandez Madero <safern@microsoft.com>
Fri, 24 May 2019 18:45:29 +0000 (11:45 -0700)
committerSantiago Fernandez Madero <safern@microsoft.com>
Fri, 24 May 2019 18:45:29 +0000 (11:45 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/7a60974599a3ca78e354b391afc23b56af294008

src/coreclr/src/System.Private.CoreLib/src/System/RuntimeHandles.cs

index 591354c..242f398 100644 (file)
@@ -70,11 +70,11 @@ namespace System
 
         public static bool operator ==(RuntimeTypeHandle left, object right) { return left.Equals(right); }
 
-        public static bool operator ==(object left, RuntimeTypeHandle right) { return right.Equals(left); }
+        public static bool operator ==(object? left, RuntimeTypeHandle right) { return right.Equals(left); }
 
         public static bool operator !=(RuntimeTypeHandle left, object right) { return !left.Equals(right); }
 
-        public static bool operator !=(object left, RuntimeTypeHandle right) { return !right.Equals(left); }
+        public static bool operator !=(object? left, RuntimeTypeHandle right) { return !right.Equals(left); }
 
 
         // This is the RuntimeType for the type