Skip to content

Commit 24ce527

Browse files
authored
Switch field being examined by NullablePublicOnlyOtherTypesTest (#66113)
We should subsequently rewrite the tests to stop relying on the private members of types in other assemblies, but for now this gets the test passing.
1 parent d543bc4 commit 24ce527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ public void NullablePublicOnlyOtherTypesTest()
759759
Assert.Equal(NullabilityState.Nullable, info.ReadState);
760760
Assert.Equal(NullabilityState.Nullable, info.WriteState);
761761

762-
privateNullableField = regexType.GetField("_code", flags)!;
762+
privateNullableField = regexType.GetField("_runner", flags)!;
763763
info = nullabilityContext.Create(privateNullableField);
764764
Assert.Equal(NullabilityState.Unknown, info.ReadState);
765765
Assert.Equal(NullabilityState.Unknown, info.WriteState);

0 commit comments

Comments
 (0)