[Issue 11670] New: RTInfo is not respected for primitive types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 3 11:00:30 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11670
Summary: RTInfo is not respected for primitive types
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: samukha at voliacable.com
--- Comment #0 from Max Samukha <samukha at voliacable.com> 2013-12-03 11:00:26 PST ---
in the object module:
template RTInfo(T)
{
enum RTInfo = is(T == int) ? cast(immutable(void)*)0xDEADBEEF : null;
}
-----
void main()
{
assert(typeid(int).rtInfo == cast(immutable(void)*)0xDEADBEEF);
}
The assert should pass.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list