mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:41:19 +00:00
79274687c3
BUG= R=ahe@google.com Review URL: https://codereview.chromium.org//21013004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25857 260f80e4-7a28-3924-810f-c04153c831b5
29 lines
517 B
Dart
29 lines
517 B
Dart
// Copyright (c) 2013, 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 file.
|
|
//
|
|
// Test that a getter has no parameters.
|
|
|
|
get f1 => null;
|
|
get f2
|
|
() /// 01: compile-time error
|
|
=> null;
|
|
get f3
|
|
(arg) /// 02: compile-time error
|
|
=> null;
|
|
get f4
|
|
([arg]) /// 03: compile-time error
|
|
=> null;
|
|
get f5
|
|
({arg}) /// 04: compile-time error
|
|
=> null;
|
|
|
|
main() {
|
|
f1;
|
|
f2;
|
|
f3;
|
|
f4;
|
|
f5;
|
|
}
|
|
|