Chromium Code Reviews| Index: pkg/fasta/test/rasta/bad_setter_initializer.dart |
| diff --git a/pkg/fasta/test/rasta/bad_setter_initializer.dart b/pkg/fasta/test/rasta/bad_setter_initializer.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1a26aeab32020e407e4dfa29bc50396f23a096c2 |
| --- /dev/null |
| +++ b/pkg/fasta/test/rasta/bad_setter_initializer.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 { |
| + C() : field = null; |
| + set field(value) {} |
| +} |
| + |
| +main() { |
| + new C(); |
| +} |