diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/typeinfo11.d	Mon Nov 19 03:39:46 2007 +0100
@@ -0,0 +1,10 @@
+module typeinfo11;
+
+void main()
+{
+    int[4] a;
+    TypeInfo ti;
+    ti = typeid(typeof(a));
+    assert(ti.next() is typeid(int));
+    assert(ti.tsize() == 16);
+}