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

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

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: Created 3 years, 5 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; 1 library;
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 Callable extends core::Object { 5 class Callable extends core::Object {
6 constructor •() → void 6 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 method call(dynamic x) → dynamic { 9 method call(dynamic x) → dynamic {
10 return "string"; 10 return "string";
11 } 11 }
12 } 12 }
13 class CallableGetter extends core::Object { 13 class CallableGetter extends core::Object {
14 constructor •() → void 14 default constructor •() → void
15 : super core::Object::•() 15 : super core::Object::•()
16 ; 16 ;
17 get call() → dynamic 17 get call() → dynamic
18 return new self::Callable::•(); 18 return new self::Callable::•();
19 } 19 }
20 static method main() → dynamic { 20 static method main() → dynamic {
21 (dynamic) → dynamic closure = (dynamic x) → dynamic => x; 21 (dynamic) → dynamic closure = (dynamic x) → dynamic => x;
22 dynamic int1 = closure.call(1); 22 dynamic int1 = closure.call(1);
23 dynamic int2 = closure.call(1); 23 dynamic int2 = closure.call(1);
24 dynamic int3 = closure.call.call(1); 24 dynamic int3 = closure.call.call(1);
(...skipping 14 matching lines...) Expand all
39 dynamic nothing4 = closure.call.call.call(); 39 dynamic nothing4 = closure.call.call.call();
40 dynamic nothing5 = callable.{self::Callable::call}(); 40 dynamic nothing5 = callable.{self::Callable::call}();
41 dynamic nothing6 = callable.{self::Callable::call}(); 41 dynamic nothing6 = callable.{self::Callable::call}();
42 dynamic nothing7 = callable.{self::Callable::call}.call(); 42 dynamic nothing7 = callable.{self::Callable::call}.call();
43 dynamic nothing8 = callable.{self::Callable::call}.call.call(); 43 dynamic nothing8 = callable.{self::Callable::call}.call.call();
44 dynamic nothing9 = callableGetter.{self::CallableGetter::call}(); 44 dynamic nothing9 = callableGetter.{self::CallableGetter::call}();
45 dynamic nothing10 = callableGetter.{self::CallableGetter::call}(); 45 dynamic nothing10 = callableGetter.{self::CallableGetter::call}();
46 dynamic nothing11 = callableGetter.{self::CallableGetter::call}.call(); 46 dynamic nothing11 = callableGetter.{self::CallableGetter::call}.call();
47 dynamic nothing12 = callableGetter.{self::CallableGetter::call}.call.call(); 47 dynamic nothing12 = callableGetter.{self::CallableGetter::call}.call.call();
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698