-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Analyzer implicit-dynamic: false
has changed
#40129
Comments
I removed these error codes because the language specification does not require them, and my understanding was that they were necessary only for DDC, which does not use analyzer anymore. |
implicit-dynamic is mentioned here: and is incredibly useful IMO, as is prevents errors like this: https://dartpad.dev/b42203ba5d7d8e5ff55f99bd003a81bf (The user forgot to write the type parameter for in |
https://dart-review.googlesource.com/c/sdk/+/131723 will restore reporting |
Thanks :) |
This reverts commit a3ea61c. We decided that analyzer should continue to provide this functionality, at least until we have a better replacement. Bug: #40129 Change-Id: Idd5ae37a6b8f8d39d374df2b0aaa04d7ee8bf3d6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131723 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
I noticed different results between the dartanalyzer I have locally (prerelease) and the one on travis (2.8.0-dev.0.0). I get more results with the older version
Looking at the analyzer changelogs it seems these error codes were removed. https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/CHANGELOG.md#0393
The assertion that these were not exposed to users seems to be incorrect--they were exposed if you use
implicit-dynamic: false
.Please advise--is
implicit-dynamic: false
supported? If so we probably need those codes back :DThanks :)
The text was updated successfully, but these errors were encountered: