Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ArgumentConverted for nullable args #2524

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoyosjs
Copy link
Member

@hoyosjs hoyosjs commented Mar 1, 2025

This fixes cases where conversion of tokens in options of nullable scalar-bindable values with Artities that are not {1,1} like Option<bool?> but conversion is still well known.

Alternatively, if this is the only case that's a ZeroOrOne arity that we care about, it might be faster to elide branches and do what the {1, 1} branch does.

This fixes cases where conversion of tokens in options of nullable scalar-bindable values with Artities that are not {1,1} like `Option<bool?>` but conversion is still well known.
@hoyosjs
Copy link
Member Author

hoyosjs commented Mar 1, 2025

@adamsitnik @jonsequitur - can you please review this? It's something that broke when we bumped diagnostics to more recent versions of commandline.

Copy link
Contributor

@jonsequitur jonsequitur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants