commit | 6f9ed76faf9fe7f254291cc5bf9c5ffe4c459487 | [log] [tgz] |
---|---|---|
author | sjindel-google <sjindel@google.com> | Mon Feb 24 16:52:11 2020 +0100 |
committer | GitHub <noreply@github.com> | Mon Feb 24 16:52:11 2020 +0100 |
tree | f64f5588f81c8930619235122dca9703cac74257 | |
parent | 1d4667bb3835079276246e8695ea12b657b4493f [diff] |
Update covariant_templates_test after changes to TypeError. (#51330) TypeError no longer implements AssertionError after https://github.com/dart-lang/sdk/issues/40317.
diff --git a/packages/flutter/test/foundation/covariant_templates_test.dart b/packages/flutter/test/foundation/covariant_templates_test.dart index 621ad18..d522000 100644 --- a/packages/flutter/test/foundation/covariant_templates_test.dart +++ b/packages/flutter/test/foundation/covariant_templates_test.dart
@@ -18,6 +18,6 @@ final A<X> ayAsAx = ay; expect(() { ayAsAx.u = X(); - }, throwsAssertionError); + }, throwsA(isA<TypeError>())); }); }