166f83dc7e
After switching over to NNBD, variance inference started failing because we no longer used variance to subtype match. This CL adds a null-aware subtype matching fn for the current algorithm. Bug: https://github.com/dart-lang/sdk/issues/43419 Change-Id: Ifecc58a7537c0656f089cc3f8aca7fd4289be6d2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/334721 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>