Chromium Code Reviews| Index: pkg/fasta/test/rasta/this_invoke.dart |
| diff --git a/pkg/fasta/test/rasta/this_invoke.dart b/pkg/fasta/test/rasta/this_invoke.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..42b95f74af6e36f75b8b5311ba69d2b676d5a068 |
| --- /dev/null |
| +++ b/pkg/fasta/test/rasta/this_invoke.dart |
| @@ -0,0 +1,12 @@ |
| +// 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. |
| + |
| +class C { |
| + m(x) => this(x); |
| + call(x) => 42; |
| +} |
| + |
| +main() { |
| + print(new C().m(42)); |
| +} |