Summary: SList cannot have struct elements that have immutable
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from SHOO <> 2010-11-09 06:46:42 PST ---
I think this code should be able to work.

-------- main.d --------
import std.container;

struct Data
    const int val;
void main()
    SList!Data list;
-------- Result -------- 
$ dmd -run main
..\std\container.d(941): Error: can only initialize c
onst member _payload inside constructor

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to