mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 19:03:13 +01:00
14 lines
345 B
D
14 lines
345 B
D
module typeinfo13;
|
|
|
|
void main()
|
|
{
|
|
float[long] aa;
|
|
auto ti = typeid(typeof(aa));
|
|
assert(ti.toString() == "float[long]");
|
|
assert(ti.next() is typeid(float));
|
|
assert(ti.tsize() == size_t.sizeof);
|
|
auto aati = cast(TypeInfo_AssociativeArray)ti;
|
|
assert(aati.value is typeid(float));
|
|
assert(aati.key is typeid(long));
|
|
}
|