We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a76c5b commit ca856efCopy full SHA for ca856ef
1 file changed
src/object.d
@@ -427,7 +427,7 @@ class TypeInfo
427
/*
428
Run-time type information for scalar types (int for now).
429
*/
430
-template RTTypeid(T)
+template __typeid(T)
431
if (is(T == int))
432
{
433
class Impl : TypeInfo
@@ -490,12 +490,12 @@ if (is(T == int))
490
}
491
492
// On-demand singleton object in static storage
493
- immutable RTTypeid = new Impl;
+ immutable __typeid = new Impl;
494
495
496
unittest
497
498
- alias id = RTTypeid!int;
+ alias id = __typeid!int;
499
static assert(id == id && id <= id && id >= id);
500
static assert(id.toString == "int");
501
int a = 42, b = 42, c = 43;
0 commit comments