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

Side by Side Diff: tests/language/src/ParameterInitializer2Test.dart

Issue 8682025: Allow optional initializing formals again (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test Parameter Intializer. 5 // Test Parameter Intializer.
6 6
7 7
8 class ParameterInitializer2Test { 8 class ParameterInitializer2Test {
9 static testMain() { 9 static testMain() {
10 var a = new A(123); 10 var a = new A(123);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class F { 69 class F {
70 F(x, this.y_, int w, int this.z) : x_ = x, w_ = w { } 70 F(x, this.y_, int w, int this.z) : x_ = x, w_ = w { }
71 F.foobar(this.z, int this.x_, int this.az_) { } 71 F.foobar(this.z, int this.x_, int this.az_) { }
72 int x_; 72 int x_;
73 int y_; 73 int y_;
74 int w_; 74 int w_;
75 int z; 75 int z;
76 int az_; 76 int az_;
77 } 77 }
78 78
79
79 main() { 80 main() {
80 ParameterInitializer2Test.testMain(); 81 ParameterInitializer2Test.testMain();
81 } 82 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | tests/language/src/ParameterInitializer5NegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698