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

Unified Diff: tests/language/generalized_function_type_test.dart

Issue 2637813002: In function-type test: remove unused variables, make type stronger. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generalized_function_type_test.dart
diff --git a/tests/language/generalized_function_type_test.dart b/tests/language/generalized_function_type_test.dart
index a3692419f2f5e7dc886e6615efa133420c8679dd..347afbe66ffb3834f6341a62d1876111c6031435 100644
--- a/tests/language/generalized_function_type_test.dart
+++ b/tests/language/generalized_function_type_test.dart
@@ -363,7 +363,7 @@ List<FunctionType> buildFunctionTypes() {
List<TypeLike> basicsPlusNull = [
basicTypes,
- [null]
+ <TypeLike>[null]
].expand((x) => x).toList();
List<TypeLike> basicsPlusNullPlusB = [
@@ -698,10 +698,7 @@ void generateTests({bool typedefsOnly}) {
Cls cls = classes[typeCounter % classes.length];
String typeName = createTypeName(typeCounter);
- String staticFunName = createStaticFunName(typeCounter);
- String methodFunName = createMethodFunName(typeCounter);
String fieldName = createFieldName(typeCounter);
- String localName = createLocalName(typeCounter);
String testName = createTestName(typeCounter);
String typeCode = createTypeCode(type);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698