Add nullable annotations to System.Runtime.Intrinsics ref assembly (dotnet/corefx...
authorSantiago Fernandez Madero <safern@microsoft.com>
Wed, 12 Jun 2019 22:20:28 +0000 (17:20 -0500)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 22:20:28 +0000 (17:20 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/550c5f5fcc9d5b552be749a1b0c49d6f31e38ade

src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.cs
src/libraries/System.Runtime.Intrinsics/ref/System.Runtime.Intrinsics.csproj

index d15538c..eaba0e9 100644 (file)
@@ -109,12 +109,12 @@ namespace System.Runtime.Intrinsics
         private readonly int _dummyPrimitive;
         public static int Count { get { throw null; } }
         public static System.Runtime.Intrinsics.Vector128<T> Zero { get { throw null; } }
-        public override bool Equals(object obj) { throw null; }
+        public override bool Equals(object? obj) { throw null; }
         public bool Equals(System.Runtime.Intrinsics.Vector128<T> other) { throw null; }
         public override int GetHashCode() { throw null; }
         public override string ToString() { throw null; }
-        public string ToString(string format) { throw null; }
-        public string ToString(string format, System.IFormatProvider formatProvider) { throw null; }
+        public string ToString(string? format) { throw null; }
+        public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; }
     }
     public static partial class Vector256
     {
@@ -216,12 +216,12 @@ namespace System.Runtime.Intrinsics
         private readonly int _dummyPrimitive;
         public static int Count { get { throw null; } }
         public static System.Runtime.Intrinsics.Vector256<T> Zero { get { throw null; } }
-        public override bool Equals(object obj) { throw null; }
+        public override bool Equals(object? obj) { throw null; }
         public bool Equals(System.Runtime.Intrinsics.Vector256<T> other) { throw null; }
         public override int GetHashCode() { throw null; }
         public override string ToString() { throw null; }
-        public string ToString(string format) { throw null; }
-        public string ToString(string format, System.IFormatProvider formatProvider) { throw null; }
+        public string ToString(string? format) { throw null; }
+        public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; }
     }
     public static partial class Vector64
     {
@@ -295,12 +295,12 @@ namespace System.Runtime.Intrinsics
         private readonly int _dummyPrimitive;
         public static int Count { get { throw null; } }
         public static System.Runtime.Intrinsics.Vector64<T> Zero { get { throw null; } }
-        public override bool Equals(object obj) { throw null; }
+        public override bool Equals(object? obj) { throw null; }
         public bool Equals(System.Runtime.Intrinsics.Vector64<T> other) { throw null; }
         public override int GetHashCode() { throw null; }
         public override string ToString() { throw null; }
-        public string ToString(string format) { throw null; }
-        public string ToString(string format, System.IFormatProvider formatProvider) { throw null; }
+        public string ToString(string? format) { throw null; }
+        public string ToString(string? format, System.IFormatProvider? formatProvider) { throw null; }
     }
 }
 namespace System.Runtime.Intrinsics.X86
index 878c747..69bb4c9 100644 (file)
@@ -3,6 +3,7 @@
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <ProjectGuid>{F9097917-AFA3-4E3E-A592-BFA2C483C7E2}</ProjectGuid>
     <Configurations>netcoreapp-Debug;netcoreapp-Release</Configurations>
+    <Nullable>enable</Nullable>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="System.Runtime.Intrinsics.cs" />