| Index: tests/language/constant_type_literal_test.dart
|
| diff --git a/tests/language/function_subtype_local6_test.dart b/tests/language/constant_type_literal_test.dart
|
| similarity index 55%
|
| copy from tests/language/function_subtype_local6_test.dart
|
| copy to tests/language/constant_type_literal_test.dart
|
| index 95817d18cce92392f418e2a8e59d30c58a5a54fc..a63ec1b60b4c41f2d0889a95ec8506272c8c16ff 100644
|
| --- a/tests/language/function_subtype_local6_test.dart
|
| +++ b/tests/language/constant_type_literal_test.dart
|
| @@ -1,17 +1,17 @@
|
| // 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.
|
| -// Dart test program for constructors and initializers.
|
| -// VMOptions=--no-eliminate-type-checks
|
|
|
| -// Regression test for issue 12127.
|
| +// Test for type literals as compile-time constants.
|
|
|
| class C<T> {
|
| - void test() {
|
| - void foo(T a) {}
|
| + void m() {
|
| + const List lst = const [
|
| + T /// 01: compile-time error
|
| + ];
|
| }
|
| }
|
|
|
| main() {
|
| - new C<bool>().test();
|
| + new C().m();
|
| }
|
|
|