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: nob...@puremagic.com
        ReportedBy: rob...@octarineparrot.com


--- Comment #0 from Robert Clipsham <rob...@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: -------

Reply via email to