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

Unified Diff: tests/language/const_error_multiply_initialized_test.dart

Issue 2953843003: Reintroducing parser changes to cause compile-time errors when trying to reinitialize a final field… (Closed)
Patch Set: 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..be132daf4523a75a8b6a4de6db5a9689677dacb6 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
;
}
@@ -32,7 +32,7 @@ main() {
shouldThrow = true; //# 02: continued
shouldThrow = true; //# 04: continued
if (shouldThrow) {
- Expect.throws(instantiateC);
+ Expect.throws(instantiateC());
} else {
instantiateC();
}
« 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