view tests/mini/delegate2.d @ 661:99f32e967746

Simplify fp80 handling in DtoConstFP
author Christian Kamm <kamm incasoftware de>
date Mon, 06 Oct 2008 21:27:29 +0200
parents ce95d269bf5a
children
line wrap: on
line source

module mini.delegate2;

void main()
{
    int foo = 42;
    int bar()
    {
        return foo;
    }
    int delegate() dg = &bar;
    assert(dg() == foo);
}