view test/condexp1.d @ 74:eb379601d445 trunk

[svn r78] Removed the useless pragmas
author lindquist
date Wed, 31 Oct 2007 04:05:38 +0100
parents 28e99b04a132
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);
    }
}