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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 2344933002: Fix recently introduced strong-mode errors (Closed)
Patch Set: Created 4 years, 3 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/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index 951ee79779aa39a329cbe8480c6ca1ed8d8653bf..c51e55e47c60338e2a77fc914c877ef01c1f8a39 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -181,7 +181,8 @@ f() {
Annotation annotation = unit.declarations
.firstWhere((m) => m is FunctionDeclaration)
.metadata[0];
- List<ConstantEvaluationTarget> expectedConstants = [
+ List<ConstantEvaluationTarget> expectedConstants =
Jennifer Messerly 2016/09/15 21:00:33 maybe "var" on left side so the type isn't repeate
Brian Wilkerson 2016/09/15 21:37:26 I would, but there is a sharp pain in the back of
+ <ConstantEvaluationTarget>[
unitElement.accessors.firstWhere((e) => e.isGetter).variable,
unitElement.types[0].fields[0],
unitElement.functions[0].localVariables[0],

Powered by Google App Engine
This is Rietveld 408576698