Mercurial > projects > ldc
view test/typeinfo3.d @ 63:2c39b5292cf3 trunk
[svn r67] Fixed ignore unittests instead of failing to compile
author | lindquist |
---|---|
date | Thu, 25 Oct 2007 10:05:21 +0200 |
parents | 28e99b04a132 |
children | 2b5a2eaa88be |
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"); }