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