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

Unified Diff: tests/language/compile_time_constant_d_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
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/compile_time_constant_e_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_d_test.dart
===================================================================
--- tests/language/compile_time_constant_d_test.dart (revision 10144)
+++ tests/language/compile_time_constant_d_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, tt) : y = 499, t = tt;
- const A.named(z, this.t) : y = 400 + z, this.z = z;
+ const A(this.z, tt) : 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";
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/compile_time_constant_e_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698