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

Unified Diff: tests/language/const_error_multiply_initialized_test.dart

Issue 2947043002: Updated parser to produce error when trying to reinitialize final variables in class constructors. … (Closed)
Patch Set: Added issue #'s to status file updates, fixed language const_error_multiply test Created 3 years, 6 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-runtime.status ('k') | tests/language/final_attempt_reinitialization_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_error_multiply_initialized_test.dart
diff --git a/tests/language/const_error_multiply_initialized_test.dart b/tests/language/const_error_multiply_initialized_test.dart
index 44ea44d9ca72cfd5c0122ae8ec195e94a7af00a6..398a0b9e645d94684075742e7bc6dac6bb49397f 100644
--- a/tests/language/const_error_multiply_initialized_test.dart
+++ b/tests/language/const_error_multiply_initialized_test.dart
@@ -13,11 +13,11 @@ class C {
const C(
this. //# 01: compile-time error
- this. //# 02: static type warning
+ this. //# 02: compile-time error
x
)
: x = 2 //# 03: compile-time error
- : x = 2 //# 04: static type warning
+ : x = 2 //# 04: compile-time error
;
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/final_attempt_reinitialization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698