Mercurial > projects > ldc
view test/typeinfo3.d @ 72:d7e764e62462 trunk
[svn r76] Fixed: TypeInfo for structs.
Fixed: PostExp was unable to allocate storage for parameters.
Fixed: Many types of functions and delegates were broken.
Misc cleanups.
author | lindquist |
---|---|
date | Mon, 29 Oct 2007 03:28:12 +0100 |
parents | 2b5a2eaa88be |
children | 5071469303d4 |
line wrap: on
line source
module typeinfo3; typedef int int_t; void main() { int_t i; auto ti = typeid(typeof(i)); printf("%s\n",ti.toString.ptr); assert(ti.toString() == "typeinfo3.int_t"); assert(ti.next !is null); assert(ti.next.toString() == "int"); assert(ti.init is null); }