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

Side by Side Diff: pkg/front_end/testcases/inference/local_constructor_from_arguments.dart.direct.expect

Issue 2908453002: Infer the types of initializing formals from the corresponding fields. (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
1 library test; 1 library test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class C<T extends core::Object> extends core::Object { 5 class C<T extends core::Object> extends core::Object {
6 field self::C::T t; 6 field self::C::T t;
7 constructor •(dynamic t) → void 7 constructor •(self::C::T t) → void
8 : self::C::t = t, super core::Object::•() 8 : self::C::t = t, super core::Object::•()
9 ; 9 ;
10 } 10 }
11 static method main() → dynamic { 11 static method main() → dynamic {
12 dynamic x = new self::C::•<dynamic>(42); 12 dynamic x = new self::C::•<dynamic>(42);
13 core::num y; 13 core::num y;
14 self::C<core::int> c_int = new self::C::•<dynamic>(y); 14 self::C<core::int> c_int = new self::C::•<dynamic>(y);
15 self::C<core::num> c_num = new self::C::•<dynamic>(123); 15 self::C<core::num> c_num = new self::C::•<dynamic>(123);
16 dynamic c_dynamic = new self::C::•<dynamic>(42); 16 dynamic c_dynamic = new self::C::•<dynamic>(42);
17 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698