| Index: tests/language/final_is_not_const_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/generics_is_check1_test.dart b/tests/language/final_is_not_const_test.dart
|
| similarity index 64%
|
| copy from tests/compiler/dart2js_extra/generics_is_check1_test.dart
|
| copy to tests/language/final_is_not_const_test.dart
|
| index c616c7c482f1ed35cb00fa3fb8994c4d74a8e441..597ff7a1b03000a44ab7f20364da74c37a7dda7f 100644
|
| --- a/tests/compiler/dart2js_extra/generics_is_check1_test.dart
|
| +++ b/tests/language/final_is_not_const_test.dart
|
| @@ -2,10 +2,10 @@
|
| // 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.
|
|
|
| -class Hest<X> {}
|
| +final F0 = 42;
|
| +const C0 = F0; /// 01: compile-time error
|
|
|
| main() {
|
| - var x = new Hest<int>();
|
| - Expect.isTrue(x is Hest<int>);
|
| - Expect.isFalse(x is Hest<String>);
|
| + Expect.equals(42, F0);
|
| + Expect.equals(42, C0); /// 01: continued
|
| }
|
|
|