Enable previewDart2 in static warning code kernel tests. Others passing.

Enable previewDart2 and annotate all @potentialAnalyzerProblems.

Also fix two of the @failingTests related to
https://github.com/dart-lang/sdk/issues/31073 which appear to be
passing now.
Bug:
Change-Id: Ic2fd534c8a9cf45eccf0f5d09dc47cd4e78aaf42
Reviewed-on: https://dart-review.googlesource.com/27468
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
This commit is contained in:
Mike Fairhurst 2017-12-08 18:31:58 +00:00 committed by commit-bot@chromium.org
parent 8a510b6df9
commit 62e5c677a8