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

Changes for nullability of bindables #23680

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

huoyaoyuan
Copy link
Contributor

@frenzibyte
Copy link
Member

I'm not sure this is complete as there are many usages which initialise bindables with non-nullable types and null values. For example:

CleanShot 2024-11-29 at 05 09 37

And so many others probably. Used the regex pattern ^.*new Bindable<(?!.*\b(int|bool|Vector2|float|double)\b).+$ to determine the above.

resolutions.Clear();
return;
}
Debug.Assert(display.NewValue != null);
Copy link
Member

Choose a reason for hiding this comment

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

Tests have null window, so currentDisplay will have null value. Should be fine to make the bindable Bindable<Display?>.

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.

3 participants