source: doc/proposals/modules-alvin/1_stitched_modules/testing/yesImports/a.cmod

stuck-waitfor-destruct
Last change on this file was 2cb10170, checked in by Alvin Zhang <alvin.zhang@…>, 4 weeks ago

stitched modules proposal

  • Property mode set to 100644
File size: 398 bytes
Line 
1module;
2
3import b;
4
5struct struct_2 {
6 // Uses a because own module shadows imported b
7 global_1;
8};
9export int global_1;
10
11int function_1() {
12 // This is not overloaded with b because they are never
13 // exported into the same space
14}
15
16export struct struct_5 {
17 // Uses b
18 type struct_6;
19 // Uses b
20 global_2;
21};
22export struct struct_7 {
23 // Uses b
24 type *struct_8;
25};
Note: See TracBrowser for help on using the repository browser.