OLD | NEW |
| 1 import 'dart-ext:foo'; |
| 2 import 'package:js/src/varargs.dart'; |
| 3 |
1 f(int a, b, [c = 1]) { | 4 f(int a, b, [c = 1]) { |
2 f(a, b, c); | 5 f(a, b, c); |
3 } | 6 } |
| 7 external f_ext(int a, b, [c = 1]); |
| 8 f_nat(int a, b, [c = 1]) native "f_nat"; |
| 9 f_sync(int a, b, [c = 1]) sync* {} |
| 10 f_async(int a, b, [c = 1]) async* {} |
| 11 |
4 g(int a, b, {c : 1}) { | 12 g(int a, b, {c : 1}) { |
5 f(a, b, c); | 13 f(a, b, c); |
6 } | 14 } |
| 15 external g_ext(int a, b, {c : 1}); |
| 16 g_nat(int a, b, {c : 1}) native "g_nat"; |
| 17 g_sync(int a, b, {c : 1}) sync* {} |
| 18 g_async(int a, b, {c : 1}) async* {} |
| 19 |
| 20 r(int a, @rest others) { |
| 21 r(a, spread(others)); |
| 22 } |
| 23 external r_ext(int a, @rest others); |
| 24 r_nat(int a, @rest others) native "r_nat"; |
| 25 r_sync(int a, @rest others) sync* {} |
| 26 r_async(int a, @rest others) async* {} |
7 | 27 |
8 invalid_names1(int let, function, arguments) { | 28 invalid_names1(int let, function, arguments) { |
9 f(let, function, arguments); | 29 f(let, function, arguments); |
10 } | 30 } |
11 invalid_names2([int let, function = 1, arguments]) { | 31 invalid_names2([int let, function = 1, arguments]) { |
12 f(let, function, arguments); | 32 f(let, function, arguments); |
13 } | 33 } |
14 invalid_names3({int let, function, arguments : 2}) { | 34 invalid_names3({int let, function, arguments : 2}) { |
15 f(let, function, arguments); | 35 f(let, function, arguments); |
16 } | 36 } |
17 | 37 |
18 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2})
{ | 38 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2})
{ |
19 f(constructor, valueOf, hasOwnProperty); | 39 f(constructor, valueOf, hasOwnProperty); |
20 } | 40 } |
OLD | NEW |