view tests/mini/bug17.d @ 1118:dde9dbae052a

Make this test a bit more meaningful
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 14 Mar 2009 22:29:31 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module bug17;

struct Vec
{
    Vec opAdd(ref Vec b) { return Vec(); }
    Vec opMul(double a) { return Vec(); }
}
void main()
{
    Vec foo;
    Vec bar;
    auto whee=foo+bar*1f;
}