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

C#: Ignore late bound methods in MustBeVariantAnalyzer #91368

Merged

Conversation

raulsntos
Copy link
Member

If symbol is late bound (as is the case when using dynamic) we can't obtain the symbol to analyze the usage of [MustBeVariant].

@raulsntos raulsntos added this to the 4.3 milestone Apr 30, 2024
@raulsntos raulsntos requested a review from a team as a code owner April 30, 2024 17:39
@akien-mga
Copy link
Member

Is this safe (and worth it) to cherry-pick for 4.2?

@raulsntos
Copy link
Member Author

It's safe but will likely not cherry-pick cleanly because of surrounding changes. I don't think it's worth cherry-picking though since dynamic is pretty much discouraged these days.

@paulloz
Copy link
Member

paulloz commented Apr 30, 2024

Maybe adding a test, to prevent future regressions 👀

If symbol is late bound (as is the case when using `dynamic`) we can't obtain the symbol to analyze the usage of `[MustBeVariant]`.
@raulsntos raulsntos force-pushed the dotnet/must-be-variant-dynamic branch from 6f022dc to 1510f88 Compare May 1, 2024 01:18
@akien-mga akien-mga merged commit 0e0ef3c into godotengine:master May 1, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@raulsntos raulsntos deleted the dotnet/must-be-variant-dynamic branch May 1, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants