diff tests/mini/nocompile_initoverlap2.d @ 1269:b8a51aa44d4c

Added testcase for overlapping struct default initializer I has missed. Slight tweak of the relevant error message.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Mon, 27 Apr 2009 01:43:29 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/nocompile_initoverlap2.d	Mon Apr 27 01:43:29 2009 +0200
@@ -0,0 +1,8 @@
+struct S
+{
+    union
+    {
+        float f = 1;
+        int i = 2;
+    }
+}