diff test/bug17.d @ 44:ea65e12b0dd0 trunk

[svn r48] fixed some storage problems
author lindquist
date Fri, 19 Oct 2007 16:05:06 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bug17.d	Fri Oct 19 16:05:06 2007 +0200
@@ -0,0 +1,13 @@
+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;
+}