| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 // | |
| 5 | |
| 6 #library("library12.dart"); | |
| 7 | |
| 8 #import("library11.dart"); | |
| 9 class Library12 { | |
| 10 Library12(this.fld); | |
| 11 Library12.other(fld, multiplier) { | |
| 12 this.fld = fld*multiplier; | |
| 13 } | |
| 14 func() { | |
| 15 return 2; | |
| 16 } | |
| 17 var fld; | |
| 18 static static_func() { | |
| 19 var result = 0; | |
| 20 var obj = new Library11(4); | |
| 21 result = obj.fld; | |
| 22 Expect.equals(4, result); | |
| 23 result += obj.func(); | |
| 24 Expect.equals(7, result); | |
| 25 result += Library11.static_func(); | |
| 26 Expect.equals(9, result); | |
| 27 result += Library11.static_fld; | |
| 28 Expect.equals(10, result); | |
| 29 Expect.equals(100, top_level11); | |
| 30 Expect.equals(200, top_level_func11()); | |
| 31 return 3; | |
| 32 } | |
| 33 static var static_fld = 4; | |
| 34 } | |
| 35 | |
| 36 interface Library12Interface { | |
| 37 Library12 addObjects(Library12 value1, Library12 value2); | |
| 38 } | |
| 39 | |
| 40 final int top_level12 = 10; | |
| 41 top_level_func12() { | |
| 42 return 20; | |
| 43 } | |
| OLD | NEW |