mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-24 04:51:48 +01:00
[svn r56] Initial support for TypeInfo.
Enums not work. Several other bugfixes.
This commit is contained in:
@@ -3,4 +3,7 @@ module typeinfo;
|
||||
void main()
|
||||
{
|
||||
auto ti = typeid(int);
|
||||
char[] str = ti.toString();
|
||||
printf("%.*s\n", str.length, str.ptr);
|
||||
assert(str == "int");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user