| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |