blob: fe949c6da1d9fb4426faef87500dea6741fd53a7 [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 A formal constructor parameter is either a formal parameter or
* an initializing formal. An initializing formal has the form this.id, where
* id is the name of an instance variable of the immediately enclosing class.
* It is a compile-time error if id is not the name of an instance variable of
* the immediately enclosing class.
* @description Checks that it is a compile-time error if id does not refer to
* any member of the class.
* @compile-error
* @author msyabro
*/
class C {
C(this.x) {}
}
main() {
new C(null);
}