Skip to content

Commit 22a24ab

Browse files
committed
CS8620: Differences in the nullability of reference types
With the tests migrated to .NET 6, we have improved nullability annotations on the core libraries, and thus the tests now recognize that `object` type parameter for the `actionArguments` is nullable. As a result, the tests are updated to align these types.
1 parent 476a695 commit 22a24ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.AspNetCore.Mvc.Tests/ValidateTopicAttributeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static ActionExecutingContext GetActionExecutingContext(Controller contro
4444
var actionExecutingContext = new ActionExecutingContext(
4545
actionContext,
4646
new List<IFilterMetadata>(),
47-
new Dictionary<string, object>(),
47+
new Dictionary<string, object?>(),
4848
controller
4949
);
5050

0 commit comments

Comments
 (0)