mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 15:23:13 +01:00
Fixed identity expression for dynamic arrays. Revamped the system to keep track of lvalues and rvalues and their relations. Typedef declaration now generate the custom typeinfo. Other bugfixes.
14 lines
256 B
D
14 lines
256 B
D
module typeinfo3;
|
|
|
|
typedef int int_t;
|
|
|
|
void main()
|
|
{
|
|
int_t i;
|
|
auto ti = typeid(typeof(i));
|
|
printf("%s\n",ti.toString.ptr);
|
|
assert(ti.toString() == "typeinfo3.int_t");
|
|
assert(ti.next !is null);
|
|
assert(ti.next.toString() == "int");
|
|
}
|