godot
godot copied to clipboard
C#: Ignore late bound methods in MustBeVariantAnalyzer
If symbol is late bound (as is the case when using dynamic
) we can't obtain the symbol to analyze the usage of [MustBeVariant]
.
- Fixes https://github.com/godotengine/godot/issues/91345.
Is this safe (and worth it) to cherry-pick for 4.2?
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.
Maybe adding a test, to prevent future regressions 👀
Thanks!