Skip to content

Commit

Permalink
Switch field being examined by NullablePublicOnlyOtherTypesTest (#66113)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stephentoub authored Mar 2, 2022
1 parent d543bc4 commit 24ce527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 24ce527

Please sign in to comment.