You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request Delegate Generator fails to compile code with CS8601 warning for required non-nullable record parameters #49381
Where a Minimal API endpoint uses a type that uses the ValueTask<T> BindAsync(HttpContext) pattern to resolve an [AsParameters] parameter that uses a non-nullable type, the compilation fails with CS8601: Possible null reference assignment.
That might not be quite the pattern of things that trigger this bug, but it's the thing that's "different" about this application's use of Minimal APIs compared to others where I've tested RDG so far.
Expected Behavior
The application compiles and the endpoint behaves as if it were compiled at runtime.
Activity
mitchdenny commentedon Jul 13, 2023
Thanks Martin - will take a look at this!
martincostello commentedon Aug 1, 2023
Would #49693 have fixed this?
mitchdenny commentedon Aug 1, 2023
Possibly but I haven't had a chance to check.