| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Testing that a void arrow function is allowed to return any type of value. | 5 // Testing that a void arrow function is allowed to return any type of value. |
| 6 | 6 |
| 7 void foo() => 42; | 7 void foo() => 42; |
| 8 void set bar(x) => 43; |
| 8 | 9 |
| 9 main() { | 10 main() { |
| 10 foo(); | 11 foo(); |
| 12 bar = 44; |
| 11 } | 13 } |
| OLD | NEW |