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

Empty addons list for LiveView is ambiguous #1343

Open
bcardarella opened this issue May 2, 2024 · 5 comments
Open

Empty addons list for LiveView is ambiguous #1343

bcardarella opened this issue May 2, 2024 · 5 comments
Assignees

Comments

@bcardarella
Copy link
Collaborator

Screenshot 2024-05-02 at 8 27 55 AM
@bcardarella
Copy link
Collaborator Author

I tried removing the # and got this:

Screenshot 2024-05-02 at 8 29 36 AM

@carson-katri
Copy link
Contributor

addons can't be passed without using the #LiveView macro, so without a # you need to remove that argument.

I'll have to look into whether @_disfavoredOverload works for macros to resolve the first issue.

@bcardarella
Copy link
Collaborator Author

That's ok with me, I prefer to just keep it as a macro anyway. If the first issue can be fixed that woudl be great.

@carson-katri
Copy link
Contributor

Looks like @_disfavoredOverload cannot be applied to a macro. So I'm not sure there's a way to resolve the first issue (besides removing the addons argument from the macro call altogether).

@bcardarella bcardarella added v0.4 bug Something isn't working improvements and removed bug Something isn't working labels Sep 17, 2024
@carson-katri
Copy link
Contributor

If we disable the form that takes any CustomRegistry.Type, this should be resolved as the compiler can assume the array is an empty array of Addons.

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