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

Side by Side Diff: pkg/kernel/testcases/strong-mode/call.baseline.txt

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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 // Too few positional arguments (call.dart:30:25)
2 // Too few positional arguments (call.dart:31:30)
3 // Too few positional arguments (call.dart:35:26)
4 // Too few positional arguments (call.dart:36:27)
5 // Too few positional arguments (call.dart:37:32)
6 library;
7 import self as self;
8 import "dart:core" as core;
9
10 class Callable extends core::Object {
11 constructor •() → void
12 : super core::Object::•()
13 ;
14 method call(dynamic x) → dynamic {
15 return "string";
16 }
17 }
18 class CallableGetter extends core::Object {
19 constructor •() → void
20 : super core::Object::•()
21 ;
22 get call() → dynamic
23 return new self::Callable::•();
24 }
25 static method main() → dynamic {
26 (dynamic) → dynamic closure = (dynamic x) → dynamic => x;
27 dynamic int1 = closure.call(1);
28 dynamic int2 = closure.call(1);
29 dynamic int3 = closure.call.call(1);
30 dynamic int4 = closure.call.call.call(1);
31 self::Callable callable = new self::Callable::•();
32 dynamic string1 = callable.{self::Callable::call}(1);
33 dynamic string2 = callable.{self::Callable::call}(1);
34 dynamic string3 = callable.{self::Callable::call}.call(1);
35 dynamic string4 = callable.{self::Callable::call}.call.call(1);
36 self::CallableGetter callableGetter = new self::CallableGetter::•();
37 dynamic string5 = callableGetter.call(1);
38 dynamic string6 = callableGetter.{self::CallableGetter::call}.call(1);
39 dynamic string7 = callableGetter.{self::CallableGetter::call}.call(1);
40 dynamic string8 = callableGetter.{self::CallableGetter::call}.call.call(1);
41 dynamic nothing1 = closure.call();
42 dynamic nothing2 = closure.call();
43 dynamic nothing3 = closure.call.call();
44 dynamic nothing4 = closure.call.call.call();
45 dynamic nothing5 = callable.{self::Callable::call}();
46 dynamic nothing6 = callable.{self::Callable::call}();
47 dynamic nothing7 = callable.{self::Callable::call}.call();
48 dynamic nothing8 = callable.{self::Callable::call}.call.call();
49 dynamic nothing9 = callableGetter.call();
50 dynamic nothing10 = callableGetter.{self::CallableGetter::call}.call();
51 dynamic nothing11 = callableGetter.{self::CallableGetter::call}.call();
52 dynamic nothing12 = callableGetter.{self::CallableGetter::call}.call.call();
53 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/strong-mode/bad_store.baseline.txt ('k') | pkg/kernel/testcases/strong-mode/closure.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698