Index: tests/lib/mirrors/metadata_allowed_values_test.dart |
diff --git a/tests/lib/mirrors/metadata_allowed_values_test.dart b/tests/lib/mirrors/metadata_allowed_values_test.dart |
index d410a632357fb8978efe479d479d113d08721f2b..ce1011b44f550971bfade059e526f61931e295aa 100644 |
--- a/tests/lib/mirrors/metadata_allowed_values_test.dart |
+++ b/tests/lib/mirrors/metadata_allowed_values_test.dart |
@@ -143,6 +143,12 @@ class II {} |
@a[0] /// 26: compile-time error |
class JJ {} |
+@kk /// 27: compile-time error |
+class KK { |
+ const KK(); |
+} |
+get kk => const KK(); |
+ |
checkMetadata(DeclarationMirror mirror, List expectedMetadata) { |
Expect.listEquals(expectedMetadata.map(reflect).toList(), mirror.metadata); |
} |
@@ -184,4 +190,5 @@ main() { |
reflectClass(HH).metadata; |
reflectClass(II).metadata; |
reflectClass(JJ).metadata; |
+ reflectClass(KK).metadata; |
} |