-
Notifications
You must be signed in to change notification settings - Fork 33
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
issues with DDC's strong mode #1892
Comments
fyi, I'm working (slowly) on these. More discussion of the type promotion ones is in this (closed) bug: dart-archive/dev_compiler#343 What is happening is there was no type promotion going on at all. Instead because "var" means "dynamic" in Dart, all warnings are suppressed. And the reason type promotion is disabled is because of an assignment to the variable in a closure, so type promotion doesn't know if the variable has been mutated or not. With DDC, we infer the type of the "var" and so we start to get warnings. Anyway I'll see what I can do there. Possibly a tweak to avoid the mutation will make type promotion work as expected. |
most of it was refactoring to avoid an assignment in a closure, which disabled type promotion
@nex3, @jmesserly, I believe these issues are all related. I'm not sure if they're real issues or if DDC's type promotion needs to be improved.
The text was updated successfully, but these errors were encountered: