We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1363d90 commit ced77c9Copy full SHA for ced77c9
test/manual_mocks_test.dart
@@ -95,9 +95,9 @@ void main() {
95
'cannot operate on method with non-nullable params without a manual '
96
'mock', () {
97
// Normally this use of `any` would be a static error. To push forward to
98
- // reveal the runtime error, we cast as int.
+ // reveal the runtime error, we cast as dynamic.
99
expect(
100
- () => when(mock.notMockedNonNullableParam(any as int))
+ () => when(mock.notMockedNonNullableParam((any as dynamic) as int))
101
.thenReturn('Mock'),
102
throwsA(TypeMatcher<TypeError>()));
103
});
0 commit comments