diff --git a/src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs index 7dd057d8cca0a..d67357b9e279b 100644 --- a/src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs +++ b/src/libraries/System.Runtime/tests/System/Reflection/NullabilityInfoContextTests.cs @@ -759,7 +759,7 @@ public void NullablePublicOnlyOtherTypesTest() Assert.Equal(NullabilityState.Nullable, info.ReadState); Assert.Equal(NullabilityState.Nullable, info.WriteState); - privateNullableField = regexType.GetField("_code", flags)!; + privateNullableField = regexType.GetField("_runner", flags)!; info = nullabilityContext.Create(privateNullableField); Assert.Equal(NullabilityState.Unknown, info.ReadState); Assert.Equal(NullabilityState.Unknown, info.WriteState);