[Issue 7190] New: Tuple length incorrect
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 31 08:26:57 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7190
Summary: Tuple length incorrect
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: robert at octarineparrot.com
--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-12-31 16:26:53 GMT ---
Created an attachment (id=1064)
Files required to reproduce
When compiling the attached code ( https://gist.github.com/7faf1013f81ea96bfb89
), the following error is given:
----
serenity/core/Model.d(2): Error: static assert "Article(1):
tuple((Article).id)"
example/models/HomeModel.d(10): instantiated from here:
SqlitePersister!(Article)
----
Note that the code requires the following directory/file layout:
serenity
` core
` Model.d
` Controller.d
example
` controllers
` HomeController.d
` models
` HomeModel.d
And should be compiled with:
dmd -c example/controllers/HomeController.d example/models/HomeModel.d
--
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