| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 class S { | 7 class S { |
| 8 int i; | 8 int i; |
| 9 S.foo() : i = 1742; | 9 S.foo() : i = 1742; |
| 10 } | 10 } |
| 11 | 11 |
| 12 class M1 { } | 12 class M1 {} |
| 13 | 13 |
| 14 class M2 { } | 14 class M2 {} |
| 15 | 15 |
| 16 class C extends S with M1, M2 { | 16 class C extends S with M1, M2 { |
| 17 C.foo() : super.foo(); | 17 C.foo() : super.foo(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 Expect.equals(1742, new C.foo().i); | 21 Expect.equals(1742, new C.foo().i); |
| 22 } | 22 } |
| OLD | NEW |