| Index: pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/utilities_collection.dart b/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| index b1c5e884fb4925114540e47eda56590a7fd57505..028238d9ae04f45cf8c35d90f03b9974611809ae 100644
|
| --- a/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| +++ b/pkg/analyzer/lib/src/generated/utilities_collection.dart
|
| @@ -50,7 +50,8 @@ class BooleanArray {
|
| * Return the value of the element at the given index.
|
| */
|
| @deprecated
|
| - static bool getEnum(int array, Enum index) => get(array, index.ordinal);
|
| + static bool getEnum<T extends Enum<T>>(int array, Enum<T> index) => get(
|
| + array, index.ordinal);
|
|
|
| /**
|
| * Set the value of the element of the given [array] at the given [index] to
|
| @@ -69,7 +70,7 @@ class BooleanArray {
|
| * Set the value of the element at the given index to the given value.
|
| */
|
| @deprecated
|
| - static int setEnum(int array, Enum index, bool value) =>
|
| + static int setEnum<T extends Enum<T>>(int array, Enum<T> index, bool value) =>
|
| set(array, index.ordinal, value);
|
|
|
| /**
|
|
|