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

Unified Diff: tests/language/final_attempt_reinitialization_test.dart

Issue 2950683002: Updated tests that had incorrect annotations which were causing test failures, and updated co19 sta… (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/language/const_error_multiply_initialized_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/final_attempt_reinitialization_test.dart
diff --git a/tests/language/final_attempt_reinitialization_test.dart b/tests/language/final_attempt_reinitialization_test.dart
index 428621e03ec3aed9611c366c040007b2cc8eff2d..4c9e07fa8f2dfeb30ac0e72bc61899fb70da2de4 100644
--- a/tests/language/final_attempt_reinitialization_test.dart
+++ b/tests/language/final_attempt_reinitialization_test.dart
@@ -3,13 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
class Foo {
- Foo(this.x);
+ Foo(this.x); //# 01: compile-time error
final int x = 42;
}
class CoffeeShop {
- final String name = "Coffee Lab";
- CoffeeShop.name(String name) : this.name = name;
+ final String shopName = "Coffee Lab";
+ CoffeeShop.name(String name) //# 02: compile-time error
+ : this.shopName = name; //# 02: compile-time error
sivachandra 2017/06/19 22:47:47 Should the decoration be there on both the lines?
}
void main() {
« no previous file with comments | « tests/language/const_error_multiply_initialized_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698