Skip to content

Commit 6f9ed76

Browse files
Update covariant_templates_test after changes to TypeError. (#51330)
TypeError no longer implements AssertionError after dart-lang/sdk#40317.
1 parent 1d4667b commit 6f9ed76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/test/foundation/covariant_templates_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ void main() {
1818
final A<X> ayAsAx = ay;
1919
expect(() {
2020
ayAsAx.u = X();
21-
}, throwsAssertionError);
21+
}, throwsA(isA<TypeError>()));
2222
});
2323
}

0 commit comments

Comments
 (0)