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

Unified Diff: pkg/analyzer/test/generated/strong_mode_test.dart

Issue 2196363003: Make analyzer strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « pkg/analyzer/test/generated/sdk_test.dart ('k') | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/strong_mode_test.dart
diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
index be5ee6bb2e8f4d33fad7c452d65ccdeb1eae89b7..75f4ea97f808527b2b86d832394b195d056a5707 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -222,7 +222,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("g1", _isStreamOf([_isDynamic]));
check("g2", _isListOf(_isInt));
- check("g3", _isStreamOf([_isListOf(_isInt)]));
+ check("g3", _isStreamOf([(DartType type) => _isListOf(_isInt)(type)]));
}
void test_async_star_propagation() {
@@ -249,7 +249,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("g1", _isStreamOf([_isDynamic]));
check("g2", _isListOf(_isInt));
- check("g3", _isStreamOf([_isListOf(_isInt)]));
+ check("g3", _isStreamOf([(DartType type) => _isListOf(_isInt)(type)]));
}
void test_cascadeExpression() {
@@ -698,7 +698,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
Asserter<InterfaceType> assertListOfInt = _isListOf(_isInt);
Asserter<InterfaceType> assertMapOfIntToListOfInt =
- _isMapOf(_isInt, assertListOfInt);
+ _isMapOf(_isInt, (DartType type) => assertListOfInt(type));
VariableDeclaration mapB = AstFinder.getFieldInClass(unit, "B", "map");
MethodDeclaration mapC = AstFinder.getMethodInClass(unit, "C", "map");
@@ -955,7 +955,8 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
}
Asserter<InterfaceType> assertListOfInt = _isListOf(_isInt);
- Asserter<InterfaceType> assertListOfListOfInt = _isListOf(assertListOfInt);
+ Asserter<InterfaceType> assertListOfListOfInt =
+ _isListOf((DartType type) => assertListOfInt(type));
assertListOfListOfInt(literal(0).staticType);
assertListOfListOfInt(literal(1).staticType);
@@ -1095,7 +1096,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
Asserter<InterfaceType> assertListOfString = _isListOf(_isString);
Asserter<InterfaceType> assertMapOfIntToListOfString =
- _isMapOf(_isInt, assertListOfString);
+ _isMapOf(_isInt, (DartType type) => assertListOfString(type));
assertMapOfIntToListOfString(literal(0).staticType);
assertMapOfIntToListOfString(literal(1).staticType);
@@ -1249,7 +1250,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("f1", _isListOf(_isDynamic));
check("f2", _isListOf(_isInt));
- check("f3", _isListOf(_isListOf(_isInt)));
+ check("f3", _isListOf((DartType type) => _isListOf(_isInt)(type)));
}
void test_sync_star_propagation() {
@@ -1276,7 +1277,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("f1", _isListOf(_isDynamic));
check("f2", _isListOf(_isInt));
- check("f3", _isListOf(_isListOf(_isInt)));
+ check("f3", _isListOf((DartType type) => _isListOf(_isInt)(type)));
}
}
« no previous file with comments | « pkg/analyzer/test/generated/sdk_test.dart ('k') | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698