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

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

Issue 2210293002: infer null from context, this avoids bottom being introduced (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/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 75f4ea97f808527b2b86d832394b195d056a5707..67d6deb565b3bcf3dacf9633ad077bb6e66e2d69 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -2046,7 +2046,7 @@ main() {
}
''';
resolveTestUnit(code);
- expectInitializerType('foo', 'int', isNull);
+ expectInitializerType('foo', 'dynamic', isNull);
Jennifer Messerly 2016/08/04 13:10:16 This case is really unfortunate and makes me doubt
Leaf 2016/08/04 23:52:55 Yeah, I think this will cause problems. I think i
Jennifer Messerly 2016/08/05 13:46:36 Yeah, definitely doesn't seem right at the moment.
}
void test_ternaryOperator_null_right() {
@@ -2056,7 +2056,7 @@ main() {
}
''';
resolveTestUnit(code);
- expectInitializerType('foo', 'int', isNull);
+ expectInitializerType('foo', 'dynamic', isNull);
}
}

Powered by Google App Engine
This is Rietveld 408576698