Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 // | |
| 5 // Test that a getter has no parameters. | |
| 6 | |
| 7 get f1 => null; | |
| 8 get f2() => null; /// 01: compile-time error | |
|
ahe
2013/08/06 14:25:06
Should be:
get f2
() /// 01: compile-time error
=
Johnni Winther
2013/08/07 06:35:17
Done.
| |
| 9 get f3(arg) => null; /// 02: compile-time error | |
| 10 get f4([arg]) => null; /// 03: compile-time error | |
| 11 get f5({arg}) => null; /// 04: compile-time error | |
| 12 | |
| 13 main() { | |
| 14 f1; | |
| 15 f2; /// 01: continued | |
|
ahe
2013/08/06 14:25:06
Remove continued from lines 15-18.
Johnni Winther
2013/08/07 06:35:17
Done.
| |
| 16 f3; /// 02: continued | |
| 17 f4; /// 03: continued | |
| 18 f5; /// 04: continued | |
| 19 } | |
| 20 | |
| OLD | NEW |