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 mixin_lib_extends_method_lib; | |
6 | |
7 class M1 { | |
8 bar() => "M1-bar"; | |
9 | |
10 clo(s) { | |
11 var l = s; | |
12 return (s) => "$l$s"; | |
13 } | |
14 } | |
15 | |
16 class M2 { | |
17 // Make sure mixed-in method has access to library-private names. | |
18 bar() => _M2_bar(); | |
19 baz() => _M2_baz; | |
20 fez() => "M2-${_fez()}"; | |
21 _fez() => "fez"; | |
22 } | |
23 | |
24 _M2_bar() { | |
25 return "M2-bar"; | |
26 } | |
27 | |
28 var _M2_baz = "M2-baz"; | |
OLD | NEW |