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 library mixin_lib_extends_field_test; | 5 library mixin_lib_extends_field_test; |
6 | 6 |
| 7 import 'package:expect/expect.dart'; |
7 import "mixin_lib_extends_field_lib.dart" as L; | 8 import "mixin_lib_extends_field_lib.dart" as L; |
8 | 9 |
9 class S { | 10 class S { |
10 var foo = "S-foo"; | 11 var foo = "S-foo"; |
11 } | 12 } |
12 | 13 |
13 class C extends S with L.M1 { } | 14 class C extends S with L.M1 { } |
14 class D extends S with L.M1, L.M2 { } | 15 class D extends S with L.M1, L.M2 { } |
15 class E extends S with L.M2, L.M1 { } | 16 class E extends S with L.M2, L.M1 { } |
16 | 17 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 Expect.throws(() => c.fez = 0, (error) => error is NoSuchMethodError); | 106 Expect.throws(() => c.fez = 0, (error) => error is NoSuchMethodError); |
106 Expect.throws(() => d.fez = 0, (error) => error is NoSuchMethodError); | 107 Expect.throws(() => d.fez = 0, (error) => error is NoSuchMethodError); |
107 Expect.throws(() => e.fez = 0, (error) => error is NoSuchMethodError); | 108 Expect.throws(() => e.fez = 0, (error) => error is NoSuchMethodError); |
108 | 109 |
109 f.fez = "F-fez-f"; | 110 f.fez = "F-fez-f"; |
110 Expect.throws(() => c.fez, (error) => error is NoSuchMethodError); | 111 Expect.throws(() => c.fez, (error) => error is NoSuchMethodError); |
111 Expect.throws(() => d.fez, (error) => error is NoSuchMethodError); | 112 Expect.throws(() => d.fez, (error) => error is NoSuchMethodError); |
112 Expect.throws(() => e.fez, (error) => error is NoSuchMethodError); | 113 Expect.throws(() => e.fez, (error) => error is NoSuchMethodError); |
113 Expect.equals("F-fez-f", f.fez); | 114 Expect.equals("F-fez-f", f.fez); |
114 } | 115 } |
OLD | NEW |