blob: cf8c283ffb2bb1f3033b619687c6a60ea6d5fe40 [file] [log] [blame]
// Copyright (c) 2013, 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.
// Test that static const fields are accessible by reflection.
// Regression test for
import "dart:mirrors";
import "package:expect/expect.dart";
class A {
static const ONE = 1;
main() {
Expect.equals(1, reflectClass(A).getField(#ONE).reflectee);