OLD | NEW |
---|---|
1 // Copyright (c) 2015, the Dartino 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 // FletchDebuggerCommands=b,r,n,n,n,s,n,s,n,b y,s,n,finish,q | 5 // DartinoDebuggerCommands=b,r,n,n,n,s,n,s,n,b y,s,n,finish,q |
6 | 6 |
7 class A { | 7 class A { |
8 final int _x, _y; | 8 final int _x, _y; |
9 A() : _x = 1, _y = 2; | 9 A() : _x = 1, _y = 2; |
10 int get x => _x; | 10 int get x => _x; |
11 int y() => _y; | 11 int y() => _y; |
12 } | 12 } |
13 | 13 |
14 int foo() => 2 + 3; | 14 int foo() => 2 + 3; |
15 | 15 |
16 main() { | 16 main() { |
17 foo(); | 17 foo(); |
18 foo(); | 18 foo(); |
19 var a = new A(); | 19 var a = new A(); |
20 a.x; | 20 a.x; |
21 a.y(); | 21 a.y(); |
22 a.y(); | 22 a.y(); |
23 1; | 23 1; |
24 } | 24 } |
OLD | NEW |