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 library Prefix17Test.dart; | 5 library Prefix17Test.dart; |
| 6 |
6 import "library12.dart" as lib12; | 7 import "library12.dart" as lib12; |
7 | 8 |
8 class LocalClass { | 9 class LocalClass { |
9 static int static_fld; | 10 static int static_fld; |
10 } | 11 } |
11 | 12 |
12 void main() { | 13 void main() { |
13 LocalClass.static_fld = 42; | 14 LocalClass.static_fld = 42; |
14 var lc1 = new lib12.Library12(5); | 15 var lc1 = new lib12.Library12(5); |
15 lib12.Library12 lc2 = new lib12.Library12(10); | 16 lib12.Library12 lc2 = new lib12.Library12(10); |
16 lib12.Library12 lc2m = new lib12.Library12.other(10,2); | 17 lib12.Library12 lc2m = new lib12.Library12.other(10, 2); |
17 lib12.Library12.static_fld = 43; | 18 lib12.Library12.static_fld = 43; |
18 //print("${LocalClass.static_fld}, ${lc1.fld}, ${lc2.fld}, ${lc2m.fld}, ${lib1
2.Library12.static_fld}"); | 19 //print("${LocalClass.static_fld}, ${lc1.fld}, ${lc2.fld}, ${lc2m.fld}, ${lib1
2.Library12.static_fld}"); |
19 } | 20 } |
OLD | NEW |