view test/typeinfo4.d @ 68:c4b3f5d2cd9b trunk

[svn r72] Calling a nested function that is not a delegate was not working.
author lindquist
date Sun, 28 Oct 2007 03:14:29 +0100
parents 2c3cd3596187
children
line wrap: on
line source

module typeinfo4;

void main()
{
    auto ti = typeid(void*);
    assert(ti.toString() == "void*");
    assert(ti.tsize() == size_t.sizeof);
    void* a = null;
    void* b = a + 1;
    assert(ti.compare(&a,&b) < 0);
}