OLD | NEW |
| (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 } | |
OLD | NEW |