OLD | NEW |
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 static method f_1_1_no_default(dynamic a, [dynamic b = null]) → dynamic { | 5 static method f_1_1_no_default(dynamic a, [dynamic b = null]) → dynamic { |
6 return a.+(b); | 6 return a.+(b); |
7 } | 7 } |
8 static method f_1_1_default(dynamic a, [dynamic b = 2]) → dynamic { | 8 static method f_1_1_default(dynamic a, [dynamic b = 2]) → dynamic { |
9 return a.+(b); | 9 return a.+(b); |
10 } | 10 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 throw "Unexpected result: ${result}."; | 42 throw "Unexpected result: ${result}."; |
43 } | 43 } |
44 else { | 44 else { |
45 if(!threw) | 45 if(!threw) |
46 throw "Expected exception missing."; | 46 throw "Expected exception missing."; |
47 if(!0.==(result)) | 47 if(!0.==(result)) |
48 throw "Unexpected result: ${result}."; | 48 throw "Unexpected result: ${result}."; |
49 } | 49 } |
50 } | 50 } |
51 static method main(dynamic arguments) → dynamic { | 51 static method main(dynamic arguments) → dynamic { |
52 self::test_1_1(MakeClosure<(dynamic, [dynamic]) → dynamic>(self::closure#f_1_1
_no_default, null), false); | 52 self::test_1_1(self::f_1_1_no_default, false); |
53 self::test_1_1(MakeClosure<(dynamic, [dynamic]) → dynamic>(self::closure#f_1_1
_default, null), true); | 53 self::test_1_1(self::f_1_1_default, true); |
54 self::test_1_b(MakeClosure<(dynamic, {b: dynamic}) → dynamic>(self::closure#f_
1_b_no_default, null), false); | 54 self::test_1_b(self::f_1_b_no_default, false); |
55 self::test_1_b(MakeClosure<(dynamic, {b: dynamic}) → dynamic>(self::closure#f_
1_b_default, null), true); | 55 self::test_1_b(self::f_1_b_default, true); |
56 } | 56 } |
57 static method closure#f_1_1_no_default(Vector #contextParameter, dynamic a, [dyn
amic b = null]) → dynamic | |
58 return self::f_1_1_no_default(a, b); | |
59 static method closure#f_1_1_default(Vector #contextParameter, dynamic a, [dynami
c b = 2]) → dynamic | |
60 return self::f_1_1_default(a, b); | |
61 static method closure#f_1_b_no_default(Vector #contextParameter, dynamic a, {dyn
amic b = null}) → dynamic | |
62 return self::f_1_b_no_default(a, b: b); | |
63 static method closure#f_1_b_default(Vector #contextParameter, dynamic a, {dynami
c b = 2}) → dynamic | |
64 return self::f_1_b_default(a, b: b); | |
OLD | NEW |