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

Unified Diff: tests/language/final_is_not_const_test.dart

Issue 10918188: Stop treating final as const in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698