Skip to content

Core: Fix implicit conversions in ContainerTypeValidate#114808

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
dalexeev:core-fix-implicit-conv-in-container-type-validate
Jan 9, 2026
Merged

Core: Fix implicit conversions in ContainerTypeValidate#114808
akien-mga merged 1 commit into
godotengine:masterfrom
dalexeev:core-fix-implicit-conv-in-container-type-validate

Conversation

@dalexeev

@dalexeev dalexeev commented Jan 9, 2026

Copy link
Copy Markdown
Member

@dalexeev dalexeev added this to the 4.6 milestone Jan 9, 2026
@dalexeev dalexeev added the bug label Jan 9, 2026
@dalexeev dalexeev requested a review from a team as a code owner January 9, 2026 19:55
@dalexeev dalexeev requested review from a team as code owners January 9, 2026 19:55

@Ivorforce Ivorforce left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I checked the git history. Seems like this part of the code organically grew from issue to issue. It makes sense to me to support all implicit conversion, not some arbitrary selection of it.

Note that the Variant::construct call will be significantly slower than the previous implementation. I recommend measuring if this makes a difference, since this affects most typed array / dictionary functions.

(mental note: In the future, Variant::construct should probably be reimplemented with better performance in mind)

@akien-mga akien-mga merged commit 2d0a589 into godotengine:master Jan 9, 2026
20 checks passed
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@dalexeev dalexeev deleted the core-fix-implicit-conv-in-container-type-validate branch January 9, 2026 22:18
rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
…-conv-in-container-type-validate

Core: Fix implicit conversions in `ContainerTypeValidate`
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.

4.6 cannot cast raw nested arrays to Array[PackedInt32Array]

3 participants