| Index: test/codegen/lib/mirrors/typedef_metadata_test.dart
|
| diff --git a/test/codegen/lib/mirrors/typedef_metadata_test.dart b/test/codegen/lib/mirrors/typedef_metadata_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..36e08370fc95f02596b0dd5bd477683bdd963fde
|
| --- /dev/null
|
| +++ b/test/codegen/lib/mirrors/typedef_metadata_test.dart
|
| @@ -0,0 +1,23 @@
|
| +// 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.
|
| +
|
| +@string @symbol
|
| +library test.typedef_metadata_test;
|
| +
|
| +import 'dart:mirrors';
|
| +
|
| +import 'metadata_test.dart';
|
| +
|
| +class S {}
|
| +class M {}
|
| +@symbol
|
| +class MA = S with M;
|
| +
|
| +@string
|
| +typedef bool Predicate(Object o);
|
| +
|
| +main() {
|
| + checkMetadata(reflectType(MA), [symbol]);
|
| + checkMetadata(reflectType(Predicate), [string]);
|
| +}
|
|
|