OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 // Parse error: but the parser should recover and create something that looks | 5 // Parse error: but the parser should recover and create something that looks |
6 // like `a b(c) => d`. | 6 // like `a b(c) => d`. |
7 a b(c) = d; | 7 a b(c) = d; |
8 | 8 |
9 class C { | 9 class C { |
10 // Good constructor. | 10 // Good constructor. |
(...skipping 10 matching lines...) Expand all Loading... |
21 C notEvenAConstructor(a) = h; | 21 C notEvenAConstructor(a) = h; |
22 } | 22 } |
23 | 23 |
24 main() { | 24 main() { |
25 C c = null; | 25 C c = null; |
26 print(const C.constant()); | 26 print(const C.constant()); |
27 print(const C.missingFactoryKeyword()); | 27 print(const C.missingFactoryKeyword()); |
28 print(const C.good()); | 28 print(const C.good()); |
29 print(new C.constant().notEvenAConstructor(null)); | 29 print(new C.constant().notEvenAConstructor(null)); |
30 } | 30 } |
OLD | NEW |