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

Side by Side Diff: vm/snapshot_test.dart

Issue 8949043: - Fix outdated use of factory clause. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
« no previous file with comments | « vm/custom_isolate_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class Fields { 5 class Fields {
6 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} 6 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {}
7 int fld1; 7 int fld1;
8 final int fld2; 8 final int fld2;
9 static int fld3; 9 static int fld3;
10 static final int fld4 = 10; 10 static final int fld4 = 10;
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 } 1254 }
1255 Expect.equals(true, encounteredException); 1255 Expect.equals(true, encounteredException);
1256 1256
1257 this.port.receive((ignored, replyTo) { 1257 this.port.receive((ignored, replyTo) {
1258 replyTo.send("foo", null); 1258 replyTo.send("foo", null);
1259 this.port.close(); 1259 this.port.close();
1260 }); 1260 });
1261 } 1261 }
1262 } 1262 }
1263 1263
1264 interface Mint factory MintImpl { 1264 interface Mint default MintImpl {
1265 1265
1266 Mint(); 1266 Mint();
1267 1267
1268 Purse createPurse(int balance); 1268 Purse createPurse(int balance);
1269 1269
1270 } 1270 }
1271 1271
1272 1272
1273 class MintImpl implements Mint { 1273 class MintImpl implements Mint {
1274 1274
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 }); 2189 });
2190 }); 2190 });
2191 } 2191 }
2192 2192
2193 void main() { 2193 void main() {
2194 this.port.receive((ignored, replyTo) { 2194 this.port.receive((ignored, replyTo) {
2195 replyTo.send("foo", null); 2195 replyTo.send("foo", null);
2196 }); 2196 });
2197 } 2197 }
2198 } 2198 }
OLDNEW
« no previous file with comments | « vm/custom_isolate_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698