Mercurial > projects > ldc
view test/typeinfo3.d @ 69:2b5a2eaa88be trunk
[svn r73] Identity expression for dynamic array and null was broken.
author | lindquist |
---|---|
date | Sun, 28 Oct 2007 04:23:38 +0100 |
parents | 28e99b04a132 |
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); }