Fix UNNECESSARY_TYPE_CHECK_TRUE in analysis_server.

To fix before https://dart-review.googlesource.com/c/sdk/+/190360

Change-Id: I4e25a6efae59f54a1a717ca2345217f7dc764e59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213420
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-09-14 21:01:48 +00:00 committed by commit-bot@chromium.org
parent d88f8ed57b
commit aa4cf21424

View file

@ -75,7 +75,7 @@ class C {
Future<void> test_isInConstContext() async {
await testUpdate(content: '''
const a = 0;
const num a = 0;
const c = a is int;
''', to: '^2.2.2');
}