blob: ef61511551539708dc4f915685359baa94b49c1d [file] [log] [blame]
/*
* Copyright (c) 2011, 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.
*/
/**
* @assertion
* setterSignature:
* returnType? set identifier formalParameterList
* ;
* methodSignature:
* static? setterSignature
* ;
* functionSignature:
* metadata returnType? identifier formalParameterList
* ;
* @description Checks that if the setter identifier is missing, declaration is
* recognized as a function declaration named 'set', and no compile-time error is issued.
* @author kaigorodov
* @reviewer rodionov
*/
class C {
void set (int i) {}
}
main() {
new C().set(1);
}