dmd/compiler/test/compilable/test19574.d
2022-07-09 18:53:07 +02:00

18 lines
240 B
D

static assert( Foo(10).bar.value == 10 );
extern(C++, "ns") {
struct Foo {
Bar!Foo bar;
this( int v ) {
bar.value = v;
}
}
}
extern(C++, "ns") {
struct Bar(T) {
int value;
}
}