[Issue 7340] New: inout not resolved for default parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 21 15:17:07 PST 2012


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

           Summary: inout not resolved for default parameters
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-01-21 15:17:05 PST ---
DMD 2.057:
inout(Object) bar(inout(Object) y = null){return y;}
static assert(is(typeof(bar())==typeof(bar(null))));

Error: static assert  (is(inout(Object) == Object)) is false

the code should compile.

-- 
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