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

Null check issue #53509

Closed
busslina opened this issue Sep 13, 2023 · 2 comments
Closed

Null check issue #53509

busslina opened this issue Sep 13, 2023 · 2 comments

Comments

@busslina
Copy link

busslina commented Sep 13, 2023

Is this normal?

A)
imagen

B)
imagen

* Value is a normal class variable:
imagen

@busslina
Copy link
Author

It's normal :). Dart won't promote variables unless they are local.

@eernstg
Copy link
Member

eernstg commented Sep 13, 2023

Dart won't promote variables unless they are local.

True, except that you might be interested in this one: dart-lang/language#2020. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants