Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: tests/language/constant_type_literal_test.dart

Issue 25844002: Check mixin of black-listed types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/constant_type_literal_test.dart
diff --git a/tests/lib/mirrors/no_metadata_test.dart b/tests/language/constant_type_literal_test.dart
similarity index 63%
copy from tests/lib/mirrors/no_metadata_test.dart
copy to tests/language/constant_type_literal_test.dart
index f5c0747a59928a9d4a8c29bc82bedf659940c368..66758e06378336fda7ef86ee36fba9f053caf16d 100644
--- a/tests/lib/mirrors/no_metadata_test.dart
+++ b/tests/language/constant_type_literal_test.dart
@@ -2,13 +2,14 @@
// 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.
-import 'dart:mirrors';
+// Test for conditionals as compile-time constants.
Johnni Winther 2013/10/03 07:39:53 Forgot to add this test in the CL yesterday.
-import 'stringify.dart';
-
-class Foo {
+class C<T> {
+ void m() {
+ const List lst = const [T];
+ }
}
main() {
- expect('[]', reflectClass(Foo).metadata);
+ print(new C().m());
}

Powered by Google App Engine
This is Rietveld 408576698