Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: pkg/analyzer/lib/src/generated/utilities_collection.dart

Issue 2653863003: Clean up new errors and warnings (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
/**

Powered by Google App Engine
This is Rietveld 408576698