view test/typeinfo8.d @ 138:aeddd4d533b3 trunk

[svn r142] minor fix to dynamic casts. added a few missed files.
author lindquist
date Fri, 18 Jan 2008 20:13:19 +0100
parents 2c3cd3596187
children d9d5d59873d8
line wrap: on
line source

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()");
}