view tests/mini/condexp1.d @ 359:926f65e39246 trunk

[svn r380] Improve complex number support.
author ChristianK
date Mon, 14 Jul 2008 17:22:43 +0200
parents 1bb99290e03a
children
line wrap: on
line source

module condexp1;

void main()
{
    char[] a = "hello";
    char[] b = "world";
    int i = 42;
    {
    char[] c = i > 50 ? b : a;
    assert(c is a);
    }
}