Fix nulable annotations build break (dotnet/coreclr#24768)
authorJan Kotas <jkotas@microsoft.com>
Fri, 24 May 2019 22:24:17 +0000 (15:24 -0700)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 22:24:17 +0000 (15:24 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/74d90fdaaa9a0aea2ee5da2cf38dfc07b0bf95fa

src/libraries/System.Private.CoreLib/src/System/String.Manipulation.cs

index d563641..74fff87 100644 (file)
@@ -633,14 +633,14 @@ namespace System
                 throw new ArgumentNullException(nameof(values));
             }
 
-            using (IEnumerator<string> en = values.GetEnumerator())
+            using (IEnumerator<string?> en = values.GetEnumerator())
             {
                 if (!en.MoveNext())
                 {
                     return string.Empty;
                 }
 
-                string firstValue = en.Current;
+                string? firstValue = en.Current;
 
                 if (!en.MoveNext())
                 {