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() { |