blob: 1bc8353348fdee01cc5b4ec3cdaf89e293c94e25 [file] [log] [blame]
// Copyright (c) 2015, 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 the expression is not one of the
/// following:
/// • A reference to a compile-time constant variable.
/// • A call to a constant constructor.
/// @description Check that variable used as metadata cause a compile time error
/// @author a.semenov@unipro.ru
var variable = 'hello';
@variable
//^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
class A {}
main() {
A? a;
}