Debian Codegraph @

tests/dmd/runnable/imports/link14074y.d

raw
1 module imports.link14074y;
2
3 void encode(R, E)(R sink, E value)
4 {
5 encodeInt(sink);
6 encodeArray(sink, value);
7
8 static assert(false);
9 }
10
11 void encodeInt(R)(R sink)
12 {
13 encodeLongType(sink);
14 }
15
16 void encodeLongType(R)(R sink)
17 {
18 import imports.link14074x;
19 put(sink);
20 }
21
22 void encodeArray(R, A)(R sink, A)
23 {
24 encodeArrayHead(sink,
25 __traits(compiles, { encode(cast(ubyte[])null, A.tupleof[0].init); }));
26 }
27
28 void encodeArrayHead(R)(R sink, ulong arrayLength)
29 {
30 encodeLongType(sink);
31 }