Debian Codegraph @

tests/dmd/runnable/imports/link10920a.d

raw
1 module imports.link10920a;
2
3 struct FormatSpec(C)
4 {
5 void func() {}
6 }
7
8 struct BitArray
9 {
10 auto toString()
11 {
12 // An auto function may runs semantic3 to calculate return type,
13 // even if it's non-root symbol.
14 // But inside the function body, all instantiations should be treated
15 // as speculative.
16 FormatSpec!char fs;
17 fs.func();
18 }
19 }