| Index: lib/src/checker/rules.dart
|
| diff --git a/lib/src/checker/rules.dart b/lib/src/checker/rules.dart
|
| index a14f71a3a3fdd46d7729d8cdd54450be98280cc8..033c5597e418fb3effa969e7062245b2f3d50836 100644
|
| --- a/lib/src/checker/rules.dart
|
| +++ b/lib/src/checker/rules.dart
|
| @@ -297,11 +297,7 @@ class RestrictedRules extends TypeRules {
|
| for (int i = 0; i < tArgs1.length; i++) {
|
| DartType t1 = tArgs1[i];
|
| DartType t2 = tArgs2[i];
|
| - if (options.covariantGenerics) {
|
| - if (!isSubTypeOf(t1, t2)) return false;
|
| - } else {
|
| - if ((t1 != t2) && !t2.isDynamic) return false;
|
| - }
|
| + if (!isSubTypeOf(t1, t2)) return false;
|
| }
|
| return true;
|
| }
|
|
|