tests/dmd/fail_compilation/imports/foo10727b.d
raw| 1 | struct CirBuff(T) |
| 2 | { |
| 3 | import imports.stdtraits10727 : isArray; |
| 4 | CirBuff!T opAssign(R)(R) if (isArray!R) |
| 5 | {} |
| 6 | |
| 7 | T[] toArray() |
| 8 | { |
| 9 | T[] ret = new T[this.length]; |
| 10 | return ret; |
| 11 | } |
| 12 | alias toArray this; |
| 13 | } |
| 14 | |
| 15 | class Bar(T = int) |
| 16 | { |
| 17 | CirBuff!T _bar; |
| 18 | } |
| 19 | |
| 20 | class Once |
| 21 | { |
| 22 | Bar!Foo _foobar; |
| 23 | } |
| 24 | |
| 25 | class Foo : Frop {} // Frop is not defined |