view test/stdiotest2.d @ 293:ebfa488f4abc trunk

[svn r314] Get correct value type for newing of multidimensional dynamic arrays. Fixes array_initialization_26_E.
author ChristianK
date Sun, 22 Jun 2008 15:21:34 +0200
parents 5825d48b27d1
children
line wrap: on
line source

module stdiotest2;
import std.stdio;
void main()
{
    int[4] v = [1,2,3,4];
    {
        writefln("%s", v);
        {
            int[] dv = v;
            {writefln("%s", dv);}
        }
    }

    {
        writefln(v);
        {
            //int[] dv = v;
            //{writefln(dv);}
        }
    }
    //writefln(1,2,3,4.56,"hello",v);
}