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

Side by Side Diff: tests/language/library11.dart

Issue 10837359: Language tests updated to use const instead of final. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/library10.dart ('k') | tests/language/library12.dart » ('j') | 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 5
6 #library("library11.dart"); 6 #library("library11.dart");
7 7
8 class Library11 { 8 class Library11 {
9 Library11(this.fld); 9 Library11(this.fld);
10 Library11.namedConstructor(this.fld); 10 Library11.namedConstructor(this.fld);
11 func() { 11 func() {
12 return 3; 12 return 3;
13 } 13 }
14 var fld; 14 var fld;
15 static static_func() { 15 static static_func() {
16 return 2; 16 return 2;
17 } 17 }
18 static var static_fld = 1; 18 static var static_fld = 1;
19 } 19 }
20 20
21 class Library111<T> { 21 class Library111<T> {
22 Library111.namedConstructor(T this.fld); 22 Library111.namedConstructor(T this.fld);
23 T fld; 23 T fld;
24 } 24 }
25 25
26 26
27 final int top_level11 = 100; 27 const int top_level11 = 100;
28 top_level_func11() { 28 top_level_func11() {
29 return 200; 29 return 200;
30 } 30 }
OLDNEW
« no previous file with comments | « tests/language/library10.dart ('k') | tests/language/library12.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698