OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library test.mixin_library; | 5 library test.mixin_library; |
6 | 6 |
7 f() => 2; | 7 f() => 2; |
8 | 8 |
9 V() => 87; | 9 V() => 87; |
10 | 10 |
11 _private() => 117; | 11 _private() => 117; |
12 | 12 |
13 class Mixin<T> { | 13 class Mixin<T> { |
14 var x = f(), y, z; | 14 var x = f(), y, z; |
15 T t; | 15 T t; |
16 foo() => super.foo() + f(); | 16 foo() => super.foo() + f(); |
17 T g(T a) => null; | 17 T g(T a) => null; |
18 h() => V(); | 18 h() => V(); |
19 l() => _private(); | 19 l() => _private(); |
20 _privateMethod() => 49; | 20 _privateMethod() => 49; |
21 publicMethod() => _privateMethod(); | 21 publicMethod() => _privateMethod(); |
22 } | 22 } |
23 | 23 |
24 foo(m) => m._privateMethod(); | 24 foo(m) => m._privateMethod(); |
OLD | NEW |