| OLD | NEW |
| 1 // compile options: --destructure-named-params |
| 1 import 'dart-ext:foo'; | 2 import 'dart-ext:foo'; |
| 2 import 'package:js/src/varargs.dart'; | 3 import 'package:js/src/varargs.dart'; |
| 3 | 4 |
| 4 f(int a, b, [c = 1]) { | 5 f(int a, b, [c = 1]) { |
| 5 f(a, b, c); | 6 f(a, b, c); |
| 6 } | 7 } |
| 7 external f_ext(int a, b, [c = 1]); | 8 external f_ext(int a, b, [c = 1]); |
| 8 f_nat(int a, b, [c = 1]) native "f_nat"; | 9 f_nat(int a, b, [c = 1]) native "f_nat"; |
| 9 f_sync(int a, b, [c = 1]) sync* {} | 10 f_sync(int a, b, [c = 1]) sync* {} |
| 10 f_async(int a, b, [c = 1]) async* {} | 11 f_async(int a, b, [c = 1]) async* {} |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 invalid_names2([int let, function = 1, arguments]) { | 32 invalid_names2([int let, function = 1, arguments]) { |
| 32 f(let, function, arguments); | 33 f(let, function, arguments); |
| 33 } | 34 } |
| 34 invalid_names3({int let, function, arguments : 2}) { | 35 invalid_names3({int let, function, arguments : 2}) { |
| 35 f(let, function, arguments); | 36 f(let, function, arguments); |
| 36 } | 37 } |
| 37 | 38 |
| 38 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2})
{ | 39 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2})
{ |
| 39 f(constructor, valueOf, hasOwnProperty); | 40 f(constructor, valueOf, hasOwnProperty); |
| 40 } | 41 } |
| OLD | NEW |