Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
68:c4b3f5d2cd9b | 69:2b5a2eaa88be |
---|---|
8 auto ti = typeid(typeof(i)); | 8 auto ti = typeid(typeof(i)); |
9 printf("%s\n",ti.toString.ptr); | 9 printf("%s\n",ti.toString.ptr); |
10 assert(ti.toString() == "typeinfo3.int_t"); | 10 assert(ti.toString() == "typeinfo3.int_t"); |
11 assert(ti.next !is null); | 11 assert(ti.next !is null); |
12 assert(ti.next.toString() == "int"); | 12 assert(ti.next.toString() == "int"); |
13 assert(ti.init is null); | |
13 } | 14 } |