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

ParamArray overload resolution in WIG #1401

Open
Jand42 opened this issue Apr 2, 2024 · 0 comments
Open

ParamArray overload resolution in WIG #1401

Jand42 opened this issue Apr 2, 2024 · 0 comments
Assignees

Comments

@Jand42
Copy link
Member

Jand42 commented Apr 2, 2024

DomElement.ReplaceChildren can't be used easily with empty params because of overload resolution:

image

This is defined in WIG as such: "replaceChildren" => !+(T<string> + Node) ^-> T<unit>. This is a common concern for every method that we generate multiple ParamArray overloads for (!+ helper operator does that), so best to put in a piece of logic in WIG to create an empty overload too in such cases.

Workaround: .ReplaceChildren([||]: string[])

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

No branches or pull requests

2 participants