You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This provides a minimal implementation of #35162 for Dart 2.1.1. Namely, it causes a hint to be shown if the user attempts to use Future or Stream without importing dart:async, and their pubspec indicates that they support a version of the SDK prior to those symbols being exported from dart:core.
The implementation addresses just the first two checkboxes from #35162. That is, it does not include logic to trigger re-analysis of the hint if the pubspec changes, and it does not include quick fixes to allow the user to correct the hint with a few clicks.
Note: these CLs cherry-pick cleanly to stable, but they result in an SDK that is unbuildable due to an extraneous import. See https://dart-review.googlesource.com/c/sdk/+/84980 for the proper fix to the conflict.
The text was updated successfully, but these errors were encountered:
@whesse @mit-mit @kasperl
This provides a minimal implementation of #35162 for Dart 2.1.1. Namely, it causes a hint to be shown if the user attempts to use
Future
orStream
without importingdart:async
, and their pubspec indicates that they support a version of the SDK prior to those symbols being exported fromdart:core
.The implementation addresses just the first two checkboxes from #35162. That is, it does not include logic to trigger re-analysis of the hint if the pubspec changes, and it does not include quick fixes to allow the user to correct the hint with a few clicks.
Revisions to be merged:
Note: these CLs cherry-pick cleanly to stable, but they result in an SDK that is unbuildable due to an extraneous import. See https://dart-review.googlesource.com/c/sdk/+/84980 for the proper fix to the conflict.
The text was updated successfully, but these errors were encountered: