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

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

Issue 2343713002: fix #27151, list and map literals infer using up and down info (Closed)
Patch Set: format 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/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 877be1e47f63bf006aa2f9b9ac4e2fb3be7dbd64..530e3f883b94dcb9d8f71a68655e379503f86627 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -1450,6 +1450,12 @@ class D<S> {
checkBody("D");
}
+ void test_genericFunction_upwardsAndDownwards() {
+ // Regression tests for https://github.com/dart-lang/sdk/issues/27151.
+ resolveTestUnit(r'List<num> x = [1, 2];');
+ expectInitializerType('x', 'List<int>');
+ }
+
void test_genericMethod() {
resolveTestUnit(r'''
class C<E> {

Powered by Google App Engine
This is Rietveld 408576698