| 1 |
// https://issues.dlang.org/show_bug.cgi?id=21975 |
| 2 |
|
| 3 |
struct Outer(T) |
| 4 |
{ |
| 5 |
Inner!T inner; |
| 6 |
alias inner this; |
| 7 |
} |
| 8 |
|
| 9 |
struct Inner(T) |
| 10 |
{ |
| 11 |
T t; |
| 12 |
} |
| 13 |
|
| 14 |
static assert(is(Outer!int : Inner!int)); // ok |
| 15 |
static assert(is(Outer!int : Inner!T, T)); // needs to compile |