comparison run/mini/bug17.d @ 1628:c6ef09dfba4d

add mini test set from ldc project
author Moritz Warning <moritzwarning@web.de>
date Mon, 10 Jan 2011 19:47:18 +0100
parents
children
comparison
equal deleted inserted replaced
1627:e1b954780837 1628:c6ef09dfba4d
1 module bug17;
2
3 struct Vec
4 {
5 Vec opAdd(ref Vec b) { return Vec(); }
6 Vec opMul(double a) { return Vec(); }
7 }
8 void main()
9 {
10 Vec foo;
11 Vec bar;
12 auto whee=foo+bar*1f;
13 }