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


Walter Bright <bugzi...@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzi...@digitalmars.com
         Resolution|                            |INVALID


--- Comment #1 from Walter Bright <bugzi...@digitalmars.com> 2012-01-29 
17:10:35 PST ---
The compiler's new behavior is correct, it avoids the infamous "array slicing"
problem - in this case, it avoids const data being incorrectly typed as
immutable.

To fix the example:

  void buildPath(C)(const(C)[][] paths...)

becomes:

  void buildPath(C)(const(C[])[] paths...)

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

Reply via email to