| Index: tests/lib/mirrors/metadata_with_type_literal_test.dart
|
| diff --git a/tests/lib/mirrors/typedef_metadata_test.dart b/tests/lib/mirrors/metadata_with_type_literal_test.dart
|
| similarity index 54%
|
| copy from tests/lib/mirrors/typedef_metadata_test.dart
|
| copy to tests/lib/mirrors/metadata_with_type_literal_test.dart
|
| index 36e08370fc95f02596b0dd5bd477683bdd963fde..923882717656d0edf1703f0d3e31b30772a88176 100644
|
| --- a/tests/lib/mirrors/typedef_metadata_test.dart
|
| +++ b/tests/lib/mirrors/metadata_with_type_literal_test.dart
|
| @@ -2,22 +2,21 @@
|
| // 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;
|
| +library test.metadata_with_type_literal;
|
|
|
| import 'dart:mirrors';
|
|
|
| import 'metadata_test.dart';
|
|
|
| -class S {}
|
| -class M {}
|
| -@symbol
|
| -class MA = S with M;
|
| +@Class
|
| +class Class {}
|
|
|
| -@string
|
| -typedef bool Predicate(Object o);
|
| +@Class2.FOO
|
| +class Class2 {
|
| + static const FOO = 2;
|
| +}
|
|
|
| main() {
|
| - checkMetadata(reflectType(MA), [symbol]);
|
| - checkMetadata(reflectType(Predicate), [string]);
|
| + checkMetadata(reflectClass(Class), [Class]);
|
| + checkMetadata(reflectClass(Class2), [Class2.FOO]);
|
| }
|
|
|