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
Config binder generator doesn't generate code when named arguments are out of order #90908
changed the title [-]Config binder doesn't generate code when named arguments are out of order[/-][+]Config binder generator doesn't generate code when named arguments are out of order[/+]on Aug 22, 2023
wrt. to RC 2 bug bar the closest fit is incomplete-scenario-for-new-feature. @tarekgh@eerhardt would you consider this blocking given that the generator is new & there's a workaround?
What would be the behavior when having this case? I understand the generator will not generate code for it but what happens then? will have any diagnostics? or such calls will use the reflection at runtime and AOT build can complain about it?
Would we fix this in servicing? If the answer is easily "yes", then I would try to fix it for .NET 8.
We'll service it if someone complains and has strong reason not accepting the trivial workaround. This is very unlikely, so I expect we'll not service it.
Activity
[-]Config binder doesn't generate code when named arguments are out of order[/-][+]Config binder generator doesn't generate code when named arguments are out of order[/+]layomia commentedon Aug 23, 2023
wrt. to RC 2 bug bar the closest fit is incomplete-scenario-for-new-feature. @tarekgh @eerhardt would you consider this blocking given that the generator is new & there's a workaround?
tarekgh commentedon Aug 23, 2023
What would be the behavior when having this case? I understand the generator will not generate code for it but what happens then? will have any diagnostics? or such calls will use the reflection at runtime and AOT build can complain about it?
layomia commentedon Aug 23, 2023
It doesn't emit a diagnostic today, but we can add one.
The call will fallback to reflection + there'll be AOT+linker analysis warnings. So, right, this constitutes a feature gap.
eerhardt commentedon Aug 23, 2023
I guess I wouldn't initially think this is "blocking", but could be convinced if this was a common scenario.
Would we fix this in servicing? If the answer is easily "yes", then I would try to fix it for .NET 8.
tarekgh commentedon Aug 23, 2023
We'll service it if someone complains and has strong reason not accepting the trivial workaround. This is very unlikely, so I expect we'll not service it.
layomia commentedon Aug 23, 2023
Upon further thought I'm inclined to make a fix quickly and propose porting it in RC 2.