4970534cab
Before this was ok: ``` var x = [a as int?, a]; ``` but this was not: ``` var x = [a, a as int?]; ``` Nor was this: ``` list[i as int?]; ``` Fixes https://github.com/dart-lang/sdk/issues/49678 Change-Id: I8a169e15b189965ad19ad489e8a0a6f02c09b34b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256300 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>