Debian Codegraph @

tests/dmd/fail_compilation/imports/foo10727a.d

raw
1 struct CirBuff(T)
2 {
3 import imports.stdtraits10727 : isArray;
4 CirBuff!T opAssign(R)(R) if (isArray!R)
5 {}
6
7 struct Range(U, S)
8 {
9 Range!(U, S) save() { return U; }
10 }
11
12 T[] toArray()
13 {
14 T[] ret = new T[this.length];
15 return ret;
16 }
17
18 alias toArray this;
19
20 Range!(T, T) range() {}
21
22 }
23
24 class Bar(T = int)
25 {
26 CirBuff!T _bar;
27 }
28
29 class Once
30 {
31 Bar!Foo _foobar;
32 }
33
34 class Foo : Frop {} // Frop is not defined