OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 | 6 |
7 var topLevel1; | 7 var topLevel1; |
8 var topLevel2 = 2; | 8 var topLevel2 = 2; |
9 | 9 |
10 class A { | 10 class A { |
11 static var a; | 11 static var a; |
(...skipping 12 matching lines...) Expand all Loading... |
24 topLevel1 = topLevel2 = 21; | 24 topLevel1 = topLevel2 = 21; |
25 Expect.equals(42, (topLevel1 + topLevel2)); | 25 Expect.equals(42, (topLevel1 + topLevel2)); |
26 | 26 |
27 A.a = 4; | 27 A.a = 4; |
28 new A(); | 28 new A(); |
29 Expect.equals(5, A.a); | 29 Expect.equals(5, A.a); |
30 Expect.equals("test", A.y()); | 30 Expect.equals("test", A.y()); |
31 } | 31 } |
32 | 32 |
33 | 33 |
OLD | NEW |