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

View File

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