mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-22 03:39:03 +02:00
[svn r29] * Fixed structs inside struct literals
This commit is contained in:
23
test/structs5.d
Normal file
23
test/structs5.d
Normal file
@@ -0,0 +1,23 @@
|
||||
module structs5;
|
||||
|
||||
void main()
|
||||
{
|
||||
{S s = S();}
|
||||
{T t = T(1);}
|
||||
{U u = U();}
|
||||
}
|
||||
|
||||
struct S
|
||||
{
|
||||
}
|
||||
|
||||
struct T
|
||||
{
|
||||
int i;
|
||||
}
|
||||
|
||||
struct U
|
||||
{
|
||||
S s;
|
||||
long l;
|
||||
}
|
||||
Reference in New Issue
Block a user