OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 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 file. |
| 4 |
| 5 library test.model; |
| 6 |
| 7 var accessorA; |
| 8 |
| 9 var accessorB; |
| 10 |
| 11 var accessorC; |
| 12 |
| 13 var fieldC; |
| 14 |
| 15 class A { |
| 16 var field; |
| 17 instanceMethod(x) => 'A:instanceMethod($x)'; |
| 18 get accessor => 'A:get accessor'; |
| 19 set accessor(x) { |
| 20 accessorA = x; |
| 21 } |
| 22 aMethod() => 'aMethod'; |
| 23 } |
| 24 |
| 25 class B extends A { |
| 26 get field => 'B:get field'; |
| 27 instanceMethod(x) => 'B:instanceMethod($x)'; |
| 28 get accessor => 'B:get accessor'; |
| 29 set accessor(x) { |
| 30 accessorB = x; |
| 31 } |
| 32 bMethod() => 'bMethod'; |
| 33 } |
| 34 |
| 35 class C extends B { |
| 36 set field(x) { |
| 37 fieldC = x; |
| 38 } |
| 39 instanceMethod(x) => 'C:instanceMethod($x)'; |
| 40 get accessor => 'C:get accessor'; |
| 41 set accessor(x) { |
| 42 accessorC = x; |
| 43 } |
| 44 cMethod() => 'cMethod'; |
| 45 } |
OLD | NEW |