blob: 5e8f30c1b215c6a486fe0dd76c70b88deeb22c02 [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 It is a compile-time error if a setter's formal parameter list
* does not consist of exactly one required formal parameter p.
* @description Checks that a compile-time error is produced if a setter's
* formal parameter list contains two required parameters.
* @compile-error
* @author vasya
*/
class C {
void set setter(v1, v2) {throw new C();}
}
main() {
new C().setter = null;
}