Files
ldc/test/bug32.d
Tomas Lindquist Olsen 039bc0880d [svn r58] Fixed cond expression resulting in a non-basic type.
Fixed identity expression for dynamic arrays.
Revamped the system to keep track of lvalues and rvalues and their relations.
Typedef declaration now generate the custom typeinfo.
Other bugfixes.
2007-10-24 01:37:34 +02:00

15 lines
192 B
D

module bug32;
struct S
{
char[] getName() { return name; }
char[] name;
}
void main()
{
S s = S("Kyle");
char[] name = s.name;
printf("%.*s\n", name.length, name.ptr);
}