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

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

Issue 2915763008: Perform type inference on default values of optional/named parameters. (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 class C<T extends core::Object> extends core::Object {
6 constructor optional(([self::C::T]) → void func) → void
7 : super core::Object::•() {}
8 constructor named(({x: self::C::T}) → void func) → void
9 : super core::Object::•() {}
10 }
11 static method optional_toplevel([dynamic x = const <dynamic>[0]]) → void {}
12 static method named_toplevel({dynamic x = const <dynamic>[0]}) → void {}
13 static method main() → dynamic {
14 function optional_local([dynamic x = const <dynamic>[0]]) → void {}
15 function named_local({dynamic x = const <dynamic>[0]}) → void {}
16 dynamic c_optional_toplevel = new self::C::optional<dynamic>(self::optional_to plevel);
17 dynamic c_named_toplevel = new self::C::named<dynamic>(self::named_toplevel);
18 dynamic c_optional_local = new self::C::optional<dynamic>(optional_local);
19 dynamic c_named_local = new self::C::named<dynamic>(named_local);
20 dynamic c_optional_closure = new self::C::optional<dynamic>(([dynamic x = cons t <dynamic>[0]]) → dynamic {});
21 dynamic c_named_closure = new self::C::named<dynamic>(({dynamic x = const <dyn amic>[0]}) → dynamic {});
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698