7b135fc7a6
Used to separate the behaviour without the variance experiment flag turned off and with the flag turned on. Allows for more specific error descriptions and allows the backend to avoid emitting variance annotations for legacy covariance and only when the experiment is enabled, otherwise there is no way of knowing whether the variance is user specified. Change-Id: Ia3070a1358e9b0fef10a3ce5057df881b9659832 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121140 Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Leaf Petersen <leafp@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>