| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |