view tangotests/h.d @ 283:9bb48fb57a7d trunk

[svn r304] Fix associative array literals by always reserving a zero inited temporary for them.
author ChristianK
date Sat, 21 Jun 2008 00:54:55 +0200
parents 68a7dd38c03c
children
line wrap: on
line source

interface Iin
{
    void[] read(size_t n);
}

interface Iout
{
    size_t write(void[] d);
}

class C : Iin
{
    void[] read(size_t n)
    {
        return null;
    }

    size_t write(void[] d)
    {
        return 0;
    }
}

void main()
{
    scope c = new C;
}