comparison test/typeinfo11.d @ 105:182b41f56b7f trunk

[svn r109] Fixed support for static array TypeInfo
author lindquist
date Mon, 19 Nov 2007 03:39:46 +0100
parents
children
comparison
equal deleted inserted replaced
104:4d1e9eb001e0 105:182b41f56b7f
1 module typeinfo11;
2
3 void main()
4 {
5 int[4] a;
6 TypeInfo ti;
7 ti = typeid(typeof(a));
8 assert(ti.next() is typeid(int));
9 assert(ti.tsize() == 16);
10 }