Update covariant_templates_test after changes to TypeError. (#51330)

TypeError no longer implements AssertionError after https://github.com/dart-lang/sdk/issues/40317.
This commit is contained in:
sjindel-google 2020-02-24 16:52:11 +01:00 committed by GitHub
parent 1d4667bb38
commit 6f9ed76faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,6 @@ void main() {
final A<X> ayAsAx = ay; final A<X> ayAsAx = ay;
expect(() { expect(() {
ayAsAx.u = X(); ayAsAx.u = X();
}, throwsAssertionError); }, throwsA(isA<TypeError>()));
}); });
} }