view test/with1.d @ 167:adca7f32fb6d trunk

[svn r183] Fixed broken identity expressions with two pointers of different types. Fixed broken pointer arithmetic for subtraction (tango.text.Util unittest now passes)
author lindquist
date Tue, 06 May 2008 01:23:02 +0200
parents 8b0e809563df
children c44e6a711885
line wrap: on
line source

module with1;
struct S
{
    int i;
    float f;
}
void main()
{
    S s;
    with(s)
    {
        i = 0;
        f = 3.4;
    }
}