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

Side by Side Diff: pkg/front_end/testcases/inference/lambda_does_not_have_propagated_type_hint.dart.strong.expect

Issue 2949093002: Properly type infer for-in loops when the iterator type is a type parameter. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 static method getListOfString() → core::List<core::String>
6 return const <core::String>[];
7 static method foo() → void {
8 core::List<dynamic> myList = self::getListOfString();
9 myList.{core::Iterable::map}<core::int>((dynamic type) → core::int => 42);
10 }
11 static method bar() → void {
12 dynamic list;
13 try {
14 list = <core::String>[];
15 }
16 on dynamic catch(final dynamic _) {
17 return;
18 }
19 list.map((dynamic value) → core::String => "${value}");
20 }
21 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698