mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
18 lines
240 B
D
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;
|
|
}
|
|
}
|