1 module imports.link10920a; 2 FormatSpec(C)3struct FormatSpec(C) 4 { 5 void func() {} 6 } 7 8 struct BitArray 9 { toStringBitArray10 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 } 20