mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-25 00:53:14 +01:00
[svn r109] Fixed support for static array TypeInfo
This commit is contained in:
10
test/typeinfo11.d
Normal file
10
test/typeinfo11.d
Normal file
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user