test105
auto test105 =
q{--- test105
// test struct constructor with default initialization
struct Struct
{
i32 var = 42;
void fun(){}
i32 var2;
}
Struct get_struct()
{
Struct s = Struct();
return s;
}
// test struct constructor with nested struct initialization
struct Struct2
{
u8[] str;
}
Struct2 get_struct2(u8[] str)
{
return Struct2(str);
}
};
tests passing
functionsvariables