| 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 class A { | 7 class A { |
| 8 int x; | 8 int x; |
| 9 int y; | 9 int y; |
| 10 int a; | 10 int a; |
| 11 int b; | 11 int b; |
| 12 | 12 |
| 13 A(this.x, this.y, {this.a: -1, this.b: -1}) { | 13 A(this.x, this.y, {this.a: -1, this.b: -1}) { |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 class B extends A { | 17 class B extends A { |
| 18 B(int x, int y) : super(x, y, b: 4, a: 3); | 18 B(int x, int y) : super(x, y, b: 4, a: 3); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void main() { | 21 void main() { |
| 22 var b = new B(1, 2); | 22 var b = new B(1, 2); |
| 23 Expect.equals(1, b.x); | 23 Expect.equals(1, b.x); |
| 24 Expect.equals(2, b.y); | 24 Expect.equals(2, b.y); |
| 25 Expect.equals(3, b.a); | 25 Expect.equals(3, b.a); |
| 26 Expect.equals(4, b.b); | 26 Expect.equals(4, b.b); |
| 27 } | 27 } |
| OLD | NEW |