mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Added initial support for CatExp aka 'a ~ b' Fixed global constant static arrays initialized with string literals Fixed casting any dynamic array to void* Fixed new expression with temporary storage Fixed alias declarations in function scope Fixed relational comparisons of pointers
18 lines
226 B
D
18 lines
226 B
D
module typeinfo8;
|
|
|
|
struct S
|
|
{
|
|
void func()
|
|
{
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S a;
|
|
auto ti = typeid(typeof(&a.func));
|
|
auto s = ti.toString;
|
|
printf("%.*s\n", s.length, s.ptr);
|
|
assert(s == "void delegate()");
|
|
}
|