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

Side by Side Diff: tests/language/src/library12.dart

Issue 8428006: Fix prefix variable parse errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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
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("library12.dart"); 6 #library("library12.dart");
7 7
8 #import("library11.dart"); 8 #import("library11.dart");
9 class Library12 { 9 class Library12 {
10 Library12(this.fld); 10 Library12(this.fld);
11 Library12.other(fld, multiplier) {
12 this.fld = fld*multiplier;
13 }
11 func() { 14 func() {
12 return 2; 15 return 2;
13 } 16 }
14 var fld; 17 var fld;
15 static static_func() { 18 static static_func() {
16 var result = 0; 19 var result = 0;
17 var obj = new Library11(4); 20 var obj = new Library11(4);
18 result = obj.fld; 21 result = obj.fld;
19 Expect.equals(4, result); 22 Expect.equals(4, result);
20 result += obj.func(); 23 result += obj.func();
(...skipping 10 matching lines...) Expand all
31 } 34 }
32 35
33 interface Library12Interface { 36 interface Library12Interface {
34 Library12 addObjects(Library12 value1, Library12 value2); 37 Library12 addObjects(Library12 value1, Library12 value2);
35 } 38 }
36 39
37 final int top_level12 = 10; 40 final int top_level12 = 10;
38 top_level_func12() { 41 top_level_func12() {
39 return 20; 42 return 20;
40 } 43 }
OLDNEW
« tests/language/src/Prefix17Test.dart ('K') | « tests/language/src/Prefix17Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698