blob: 55433b696d4c45adc88b1f9a7ad6a3250e1e0e0a [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 static
* setter's formal parameter list is empty.
* @compile-error
* @author iefremov
*/
class C {
static void set setter() { }
}
main() {
try {
C.setter = null;
} catch (e) {}
}