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 a7401a3 commit e032616Copy full SHA for e032616
pkgs/mockito/lib/src/builder.dart
@@ -457,7 +457,7 @@ class _MockTargetGatherer {
457
throw InvalidMockitoAnnotationException(
458
'Mockito cannot mock an enum: ${elementToMock.displayName}');
459
}
460
- if (typeProvider.nonSubtypableClasses.contains(elementToMock)) {
+ if (typeProvider.isNonSubtypableClass(elementToMock)) {
461
462
'Mockito cannot mock a non-subtypable type: '
463
'${elementToMock.displayName}. It is illegal to subtype this '
0 commit comments