mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:43:57 +00:00
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:
parent
d88f8ed57b
commit
aa4cf21424
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue