annotate test/bug32.d @ 54:28e99b04a132 trunk

[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.
author lindquist
date Wed, 24 Oct 2007 01:37:34 +0200
parents
children d9d5d59873d8
rev   line source
lindquist@54 1 module bug32;
lindquist@54 2
lindquist@54 3 struct S
lindquist@54 4 {
lindquist@54 5 char[] getName() { return name; }
lindquist@54 6 char[] name;
lindquist@54 7 }
lindquist@54 8
lindquist@54 9 void main()
lindquist@54 10 {
lindquist@54 11 S s = S("Kyle");
lindquist@54 12 char[] name = s.name;
lindquist@54 13 printf("%.*s\n", name.length, name.ptr);
lindquist@54 14 }