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

Unified Diff: tests/language/compile_time_constant_e_test.dart

Issue 10825140: Add check for duplicate field initialization (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/compile_time_constant_e_test.dart
===================================================================
--- tests/language/compile_time_constant_e_test.dart (revision 10092)
+++ tests/language/compile_time_constant_e_test.dart (working copy)
@@ -3,13 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
class A {
- final x = 3;
+ final x;
final y;
final z;
final t;
- const A([this.z = 99, tt = 100]) : y = 499, t = tt;
- const A.named([z, this.t]) : y = 400 + z, this.z = z;
+ const A([this.z = 99, tt = 100]) : y = 499, t = tt, x = 3;
+ const A.named([z, this.t]) : y = 400 + z, this.z = z, x = 3;
const A.named2([t, z, y, x]) : x = t, y = z, z = y, t = x;
toString() => "A $x $y $z $t";

Powered by Google App Engine
This is Rietveld 408576698