Chromium Code Reviews| 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()); |
| } |