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 int add(x, y) => x + y; | 5 int add(x, y) => x + y; |
6 | 6 |
7 class A { | 7 class A { |
8 final int _x, _y; | 8 final int _x, _y; |
9 int _z; | 9 int _z; |
10 | 10 |
11 A(int x, int y) : _x = x, _y = y, _z = add(x, y) { | 11 A(int x, int y) : _x = x, _y = y, _z = add(x, y) { |
(...skipping 14 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 void initB(int a, int b, int c, int d) { | 28 void initB(int a, int b, int c, int d) { |
29 sum = a + b + c + d; | 29 sum = a + b + c + d; |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
33 main() { | 33 main() { |
34 new B(42); | 34 new B(42); |
35 } | 35 } |
OLD | NEW |