Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: tests/language/mixin_lib_extends_method_lib.dart

Issue 12250018: Mixin tests with libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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";
OLDNEW
« no previous file with comments | « tests/language/mixin_lib_extends_field_test.dart ('k') | tests/language/mixin_lib_extends_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698