Chromium Code Reviews| Index: pkg/kernel/test/closures/capture_closure_parameter.dart |
| diff --git a/pkg/kernel/test/closures/capture_closure_parameter.dart b/pkg/kernel/test/closures/capture_closure_parameter.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e70052d2e22096f9643b69f5a400572d388dd391 |
| --- /dev/null |
| +++ b/pkg/kernel/test/closures/capture_closure_parameter.dart |
| @@ -0,0 +1,13 @@ |
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE.md file. |
| + |
| +main(List<String> arguments) { |
| + foo(x) { |
| + bar() { |
| + print(x); |
| + } |
| + return bar; |
| + } |
| + foo(arguments[0])(); |
| +} |