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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « dart/tests/language/library1.dart ('k') | dart/tests/language/library11.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 5
6 library library10; 6 #library("library10.dart");
7 7
8 import "library11.dart" as lib11; 8 #import("library11.dart", prefix : "lib11");
9 class Library10 { 9 class Library10 {
10 Library10(this.fld); 10 Library10(this.fld);
11 func() { 11 func() {
12 return 2; 12 return 2;
13 } 13 }
14 var fld; 14 var fld;
15 static static_func() { 15 static static_func() {
16 var result = 0; 16 var result = 0;
17 var obj = new lib11.Library11(4); 17 var obj = new lib11.Library11(4);
18 result = obj.fld; 18 result = obj.fld;
19 Expect.equals(4, result); 19 Expect.equals(4, result);
20 result += obj.func(); 20 result += obj.func();
21 Expect.equals(7, result); 21 Expect.equals(7, result);
22 result += lib11.Library11.static_func(); 22 result += lib11.Library11.static_func();
23 Expect.equals(9, result); 23 Expect.equals(9, result);
24 result += lib11.Library11.static_fld; 24 result += lib11.Library11.static_fld;
25 Expect.equals(10, result); 25 Expect.equals(10, result);
26 Expect.equals(100, lib11.top_level11); 26 Expect.equals(100, lib11.top_level11);
27 Expect.equals(200, lib11.top_level_func11()); 27 Expect.equals(200, lib11.top_level_func11());
28 return 3; 28 return 3;
29 } 29 }
30 static var static_fld = 4; 30 static var static_fld = 4;
31 } 31 }
32 32
33 const int top_level10 = 10; 33 const int top_level10 = 10;
34 top_level_func10() { 34 top_level_func10() {
35 return 20; 35 return 20;
36 } 36 }
OLDNEW
« no previous file with comments | « dart/tests/language/library1.dart ('k') | dart/tests/language/library11.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698