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

Warning never assigned on [SerializeReference] using interface #2426

Open
SwingWren opened this issue Nov 1, 2023 · 1 comment
Open

Warning never assigned on [SerializeReference] using interface #2426

SwingWren opened this issue Nov 1, 2023 · 1 comment

Comments

@SwingWren
Copy link

When using [SerializeReference] attribute and an Interface you get a never assigned warning
image

@igor-elovikov
Copy link

It also affects collections and with collections rider always suggesting to convert it to readonly (which breaks serialization)
https://youtrack.jetbrains.com/issue/RIDER-94348/SerializeReference-and-generic-collection-holding-interface

Currently it's very annoying to use [SerializeReference] with any form of interface which is a very valid use case.

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

No branches or pull requests

2 participants