Files
sdk/tests/lib_2/mirrors/metadata_const_map_test.dart
T
Jakob Roland Andersen 77a7ca98a2 Migrate test batch 226 to Dart 2.0
Specifically skipped formatting these files, since there are tests that depend
on non-standard source formatting.

Bug:
Change-Id: I3058984458a9c63b239ed8714828ec42d33316c5
Reviewed-on: https://dart-review.googlesource.com/3440
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-09-07 09:15:44 +00:00

24 lines
532 B
Dart

// Copyright (c) 2014, 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.
// Regression test for issue 20776. Tests that the needed classes for the
// constant map in the metadata are generated.
library lib;
@MirrorsUsed(targets: 'lib')
import 'dart:mirrors';
class C {
final x;
const C(this.x);
}
@C(const {'foo': 'bar'})
class A {}
main() {
print(reflectClass(A).metadata);
}