Ignore NullableContextAttribute in API Compat and fix build break due to Range parsin...
authorAndy Gocke <angocke@microsoft.com>
Thu, 27 Jun 2019 03:25:53 +0000 (20:25 -0700)
committerSantiago Fernandez Madero <safern@microsoft.com>
Thu, 27 Jun 2019 19:45:32 +0000 (12:45 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/b3643ab830694eedffb1c9c80051e41517ea0d5f

eng/DefaultGenApiDocIds.txt
src/libraries/System.Runtime/tests/System/Text/Unicode/Utf16UtilityTests.ValidateChars.netcoreapp.cs

index e3fa48c..7b7d4e6 100644 (file)
@@ -22,6 +22,7 @@ T:System.Runtime.CompilerServices.CompilerGeneratedAttribute
 T:System.Runtime.CompilerServices.IteratorStateMachineAttribute
 T:System.Runtime.CompilerServices.MethodImpl
 T:System.Runtime.CompilerServices.NullableAttribute
+T:System.Runtime.CompilerServices.NullableContextAttribute
 T:System.Runtime.CompilerServices.TypeForwardedFromAttribute
 T:System.Runtime.ConstrainedExecution.ReliabilityContractAttribute
 T:System.Runtime.InteropServices.ClassInterfaceAttribute
@@ -51,4 +52,4 @@ T:System.Reflection.DefaultMemberAttribute
 
 // These do not need to be persisted in the implementation
 T:System.ComponentModel.EditorBrowsableAttribute
-T:System.ObsoleteAttribute
\ No newline at end of file
+T:System.ObsoleteAttribute
index 7e5281e..3c509df 100644 (file)
@@ -281,7 +281,7 @@ namespace System.Text.Unicode.Tests
             int idx;
             while ((idx = input.IndexOf('<')) >= 0)
             {
-                input = input[..idx] + (char)ushort.Parse(input.Substring(idx + 1, 4), NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture) + input[idx + 6..];
+                input = input[..idx] + (char)ushort.Parse(input.Substring(idx + 1, 4), NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture) + input[(idx + 6)..];
             }
 
             return input;