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

Side by Side Diff: test/codegen/fieldtest.dart

Issue 1224083017: Add support for Enums (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Use interpolation Created 5 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/fieldtest.js ('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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library fieldtest; 5 library fieldtest;
6 6
7 class A { 7 class A {
8 int x = 42; 8 int x = 42;
9 } 9 }
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static const b = c + 3; 57 static const b = c + 3;
58 static const d = 4; 58 static const d = 4;
59 } 59 }
60 class StaticFieldOrder2 { 60 class StaticFieldOrder2 {
61 static const a = StaticFieldOrder2.b + 1; 61 static const a = StaticFieldOrder2.b + 1;
62 static const c = StaticFieldOrder2.d + 2; 62 static const c = StaticFieldOrder2.d + 2;
63 static const b = StaticFieldOrder2.c + 3; 63 static const b = StaticFieldOrder2.c + 3;
64 static const d = 4; 64 static const d = 4;
65 } 65 }
66 66
67 enum MyEnum { Val1, Val2, Val3, Val4 }
68
67 void main() { 69 void main() {
68 var a = new A(); 70 var a = new A();
69 foo(a); 71 foo(a);
70 bar(a); 72 bar(a);
71 print(baz(a)); 73 print(baz(a));
72 74
73 print(new Generic<String>().foo(' world')); 75 print(new Generic<String>().foo(' world'));
76
77 print(MyEnum.values);
74 } 78 }
OLDNEW
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698