c5f478dfa8
The covariance optimization assumed that private members only occur in the library in which they are private. This is not the case. The CFE injects member signatures, forwarding stubs and noSuchMethod forwarders for private members into other libraries. This change takes that into account by only removing covariant bits on members private to the enclosing library. This hopefully a fix for https://github.com/flutter/flutter/issues/66122 Change-Id: I5070cee9eea8e785622cef33fdc7138a0a90f53a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168950 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com>