Skip to content

Commit 397abeb

Browse files
committed
Add missing #nullable in test file
1 parent b93fe29 commit 397abeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mvc/test/WebSites/BasicWebSite/Controllers/CustomServiceApiController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public ActionResult<string> GetKeyNull([FromKeyedServices(null)] ICustomService
3535
return service.Process();
3636
}
3737

38+
# nullable enable
39+
3840
[HttpGet("GetOptionalNotRegistered")]
3941
public ActionResult<string> GetOptionalNotRegistered([FromKeyedServices("no_existing_key")] ICustomService? service)
4042
{

0 commit comments

Comments
 (0)