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

Side by Side Diff: tests/language/library_prefixes_test1.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/library12.dart ('k') | tests/language/library_prefixes_test2.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 class Constants { 5 class Constants {
6 static final PI = 3.14; 6 static const PI = 3.14;
7 static final foo = 1; 7 static const foo = 1;
8 } 8 }
9 9
10 class A { 10 class A {
11 static final y = -1; 11 static const y = -1;
12 int x; 12 int x;
13 A() : x = 1 {} 13 A() : x = 1 {}
14 A.named() : x = 3 {} 14 A.named() : x = 3 {}
15 A.superC(x) : x = x + 7 {} 15 A.superC(x) : x = x + 7 {}
16 factory A.fac() { return new A.named(); } 16 factory A.fac() { return new A.named(); }
17 } 17 }
18 18
19 class B extends A { 19 class B extends A {
20 B() : super() {} 20 B() : super() {}
21 B.named() : super.superC(1) {} 21 B.named() : super.superC(1) {}
(...skipping 16 matching lines...) Expand all
38 38
39 class E { 39 class E {
40 var f; 40 var f;
41 E() {} 41 E() {}
42 E.fun(x) : f = (() { return x + 11; }) {} 42 E.fun(x) : f = (() { return x + 11; }) {}
43 static foo() { return 0; } 43 static foo() { return 0; }
44 static fooo(x) { return () { return x + 99; }; } 44 static fooo(x) { return () { return x + 99; }; }
45 bar() { return 1; } 45 bar() { return 1; }
46 toto(x) { return () { return x + 2; }; } 46 toto(x) { return () { return x + 2; }; }
47 } 47 }
OLDNEW
« no previous file with comments | « tests/language/library12.dart ('k') | tests/language/library_prefixes_test2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698