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

Unified Diff: tests/language/assign_static_type_test.dart

Issue 637303005: Type check constant variable declarations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/assign_static_type_test.dart
diff --git a/tests/language/assign_static_type_test.dart b/tests/language/assign_static_type_test.dart
index 0d1c30785a81bbb7f7c1ca71f0bddc1b266fb06e..c67379f9158b418e1c6ea9ff2aceff203aa1d209 100644
--- a/tests/language/assign_static_type_test.dart
+++ b/tests/language/assign_static_type_test.dart
@@ -8,7 +8,7 @@
int a = "String"; /// 01: static type warning, dynamic type error
class A {
- static const int c = "String"; /// 02: static type warning, dynamic type error
+ static const int c = "String"; /// 02: static type warning, checked mode compile-time error
final int d = "String"; /// 03: static type warning, dynamic type error
int e = "String"; /// 04: static type warning, dynamic type error
A() {

Powered by Google App Engine
This is Rietveld 408576698