[Issue 3353] New: storage class of a member function is propagated to default arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 30 13:55:04 PDT 2009


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

           Summary: storage class of a member function is propagated to
                    default arguments
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2009-09-30 13:55:03 PDT ---
Compiling the module test.d:

public struct foo
{
    public this(real aleft)
    {
    } 
}

class bar
{
    final void fun(foo arg = foo(0.)) { } 
}

produces:
test.d(11): Error: variable test.bar.__ctmp1 final cannot be applied to
variable

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