source: doc/proposals/modules-alvin/1_stitched_modules/testing/yesImports/b.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: 516 bytes
Line 
1module;
2
3import a;
4import "../yesImports";
5
6export struct struct_2 {
7 // Uses b because own module shadows imported a
8 global_1;
9};
10int global_1;
11
12int function_1(struct struct_3 foo /* Uses b */) {
13 // Uses b because own module shadows imported a
14 global_1;
15}
16
17export struct struct_3 {
18 // Uses yesImports
19 type struct_4;
20};
21export int global_2;
22export struct struct_6 {
23 // Uses a
24 type struct_7;
25};
26export struct struct_8 {
27 // uses b
28 function_1;
29 // uses b
30 type struct_7;
31};
Note: See TracBrowser for help on using the repository browser.