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

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

Issue 2900873002: Fix type inference of assignments to local variables. (Closed)
Patch Set: Created 3 years, 7 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 field dynamic h = null;
6 static method foo((core::Object) → core::int f) → void {}
7 static method main() → dynamic {
8 (core::Object) → core::Null f = (core::Object x) → core::Null {
9 return null;
10 };
11 core::String y = f.call(42);
12 f = (core::Object x) → core::String => "hello";
13 self::foo((core::Object x) → core::Null {
14 return null;
15 });
16 self::foo((core::Object x) → core::Null {
17 throw "not implemented";
18 });
19 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.strong.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698