blob: e00c708980a4cf3d6cac3eac801204ef48ea4725 [file] [log] [blame]
// Copyright (c) 2012, 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.
// @dart = 2.9
import "package:expect/expect.dart";
final F0 = 42;
const C0 = F0;
// ^^
// [analyzer] COMPILE_TIME_ERROR.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE
// [cfe] Constant evaluation error:
// [cfe] Not a constant expression.
main() {
Expect.equals(42, F0);
Expect.equals(42, C0);
}