Debian Codegraph @

tests/dmd/fail_compilation/imports/diag9210stdcomplex.d

raw
1 module imports.diag9210stdcomplex;
2
3 import imports.diag9210stdtraits;
4
5 struct Complex(T) if (isFloatingPoint!T)
6 {
7 T re;
8 T im;
9 }
10
11 // https://issues.dlang.org/show_bug.cgi?id=9210: Complex!real instantiation is incomplete in here,
12 // because its completion is deferred by an "undefined identifier" error in imports.diag9210b.
13 Complex!real expi(real y)
14 {
15 return Complex!real(0, 0);
16 }