| 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 var a; | 8 var a; |
| 9 var b; | 9 var b; |
| 10 var c; | 10 var c; |
| 11 | 11 |
| 12 A(this.b) { | 12 A(this.b) { |
| 13 a = "hov "; | 13 a = "hov "; |
| 14 } | 14 } |
| 15 | 15 |
| 16 toString() => a + b; | 16 toString() => a + b; |
| 17 } | 17 } |
| 18 | 18 |
| 19 main() { | 19 main() { |
| 20 var a = new A("hej"); | 20 var a = new A("hej"); |
| 21 a.c = 9; | 21 a.c = 9; |
| 22 Expect.equals("hov hej", a.toString()); | 22 Expect.equals("hov hej", a.toString()); |
| 23 Expect.equals(9, a.c); | 23 Expect.equals(9, a.c); |
| 24 } | 24 } |
| 25 | 25 |
| OLD | NEW |