Skip to content

Don't automatically treat numeric values as ObjectIDs#1957

Open
BenLubar wants to merge 1 commit intogodotengine:masterfrom
BenLubar:ref-non-object
Open

Don't automatically treat numeric values as ObjectIDs#1957
BenLubar wants to merge 1 commit intogodotengine:masterfrom
BenLubar:ref-non-object

Conversation

@BenLubar
Copy link
Contributor

This fixes a regression where

Variant x = 1;
Ref<RefCounted> y = x;

would print a warning rather than just setting y to null.

@BenLubar BenLubar requested a review from a team as a code owner March 24, 2026 18:34
Copy link
Collaborator

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

Thanks! This makes sense to me

@dsnopek dsnopek added the bug This has been identified as a bug label Mar 24, 2026
@dsnopek dsnopek added this to the 10.x milestone Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug cherrypick:4.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants