1f26ddfee2
This CL introduces variance-dependent treatment of the `Handle` native type when converting native types to Dart types. Since `Handle` can represent any object, it should match any type. To achive that in cases when `Handle` appears as the subtype in the subtype checks, it's converted to `Never` in covariant positions and to `Object?` in covariant ones. TEST=existing Issue https://github.com/dart-lang/sdk/issues/49518 Change-Id: Ie16a210491ada80d21f4d0f1c0fa3b3804881ede Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426880 Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>