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 final A a1 = new A(1); | 5 final A a1 = new A(1); |
6 final A a2 = new A(1); | 6 final A a2 = new A(1); |
7 | 7 |
8 class A { | 8 class A { |
9 int x; | 9 int x; |
10 A(int x) : this.x = x; | 10 A(int x) : this.x = x; |
11 } | 11 } |
12 | 12 |
13 main() { | 13 main() { |
14 var x = 42; | 14 var x = 42; |
15 var z = a1.x + x + a2.x; | 15 var z = a1.x + x + a2.x; |
16 } | 16 } |
OLD | NEW |