Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: tests/language/getter_parameters_test.dart

Issue 21013004: Remove support for getters with parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698