mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
15 lines
254 B
D
15 lines
254 B
D
// https://issues.dlang.org/show_bug.cgi?id=21975
|
|
|
|
struct Outer(T)
|
|
{
|
|
Inner!T inner;
|
|
alias inner this;
|
|
}
|
|
|
|
struct Inner(T)
|
|
{
|
|
T t;
|
|
}
|
|
|
|
static assert(is(Outer!int : Inner!int)); // ok
|
|
static assert(is(Outer!int : Inner!T, T)); // needs to compile
|