blob: 47e71df121437a75446d944a6fc4696f5cb975e8 [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 an instance variable is declared
* to be constant.
* @description Checks that It is a compile-time error if an instance variable
* is declared to be constant.
* @compile-error
* @author sgrekhov@unipro.ru
*/
class C {
const v1 = 1;
}
main() {
new C().v1;
}