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

[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries #99485

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

raulsntos
Copy link
Member

@raulsntos raulsntos added this to the 4.4 milestone Nov 21, 2024
@raulsntos raulsntos requested a review from a team as a code owner November 21, 2024 01:14
@raulsntos raulsntos force-pushed the dotnet/dictionary-compat branch from 952ec45 to e9bc573 Compare November 21, 2024 01:18
return false;
}

var keyElementVariantType = MarshalUtils.ConvertMarshalTypeToVariantType(keyElementMarshalType!.Value)!.Value;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need the null-suppression operator on keyElementMarshalType here, since it's already checked by the condition above. Same thing for valueElementMarshalType below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you are right. I just copy-pasted without thinking.

@raulsntos raulsntos force-pushed the dotnet/dictionary-compat branch from e9bc573 to 4e5080d Compare November 21, 2024 19:39
Copy link
Member

@paulloz paulloz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Repiteo Repiteo merged commit fae3a28 into godotengine:master Nov 22, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 22, 2024

Thanks!

@raulsntos raulsntos deleted the dotnet/dictionary-compat branch January 21, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C#: Script Generator fails when using generics in a dictionary.
3 participants