OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015, 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 // DartOptions=-Did=true -Ddotted.id=some_string -Dlots.of.dots.In.id=false --co
nditional-directives | |
6 | |
7 import 'package:expect/expect.dart'; | |
8 | |
9 import 'config_import_lib1a.dart' | |
10 if (id) 'config_import_lib1b.dart' | |
11 if (not.set.id) 'config_import_lib1c.dart'; | |
12 | |
13 import 'config_import_lib2a.dart' | |
14 if (not.set.id) 'config_import_lib2b.dart' | |
15 if (not.set.either) 'config_import_lib2c.dart'; | |
16 | |
17 import 'config_import_lib3a.dart' | |
18 if (dotted.id == "some_string") 'config_import_lib3b.dart' | |
19 if (id) 'config_import_lib3c.dart'; | |
20 | |
21 import 'config_import_lib4a.dart' | |
22 if (lots.of.dots.In.id == "other") 'config_import_lib4b.dart' | |
23 if (lots.of.dots.In.id == "false") 'config_import_lib4c.dart'; | |
24 | |
25 main() { | |
26 Expect.equals("b", lib1()); | |
27 Expect.equals("a", lib2()); | |
28 Expect.equals("b", lib3()); | |
29 Expect.equals("c", lib4()); | |
30 } | |
OLD | NEW |