[Issue 7190] Tuple length incorrect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 1 06:37:04 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7190



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-01 06:37:02 PST ---
This is a forward reference bug.

Workaround in core/Model.d:

 class SqlitePersister(T) {
+    static assert(T.sizeof);  // force running semantic of T
+                              // to resolve sizeof property
     static assert(T.tupleof.length > 0, T.stringof ~ `(` ~ (T.tupleof.length
                                             + '0') ~ `): ` ~
T.tupleof.stringof);
 }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list