corert compile fixes, corert class Debug should be partial and s_WriteCore need to...
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Thu, 1 Nov 2018 03:18:02 +0000 (20:18 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 1 Nov 2018 16:58:05 +0000 (09:58 -0700)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/127bdfe680f1eccb7a349b040a07123441af1e62

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/DebugProvider.cs

index 3dce03a..cd22c81 100644 (file)
@@ -11,7 +11,7 @@ namespace System.Diagnostics
     /// <summary>
     /// Provides a set of properties and methods for debugging code.
     /// </summary>
-    public static class Debug
+    public static partial class Debug
     {
         private static volatile DebugProvider s_provider = new DebugProvider();
 
index 416423e..3150e68 100644 (file)
@@ -78,6 +78,6 @@ namespace System.Diagnostics
         }
 
         // internal and not readonly so that the tests can swap this out.
-        internal static Action<string> s_WriteCore;
+        internal static Action<string> s_WriteCore = null;
     }
 }
\ No newline at end of file