0a3ed33abd
This is a reland of 77a7ca98a2
Original change's description:
> 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>
Change-Id: I083c07c08333909aaf5bce763601445ff9f0413f
Reviewed-on: https://dart-review.googlesource.com/3920
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
24 lines
532 B
Dart
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);
|
|
}
|