[Issue 13079] New: Need 'this' to access member - function literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 8 12:04:14 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13079

          Issue ID: 13079
           Summary: Need 'this' to access member - function literal
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: czdanol at gmail.com

Hey, this code can't be compiled, although it should:

class Test {

    mixin( function string() {        
        return "";
    }() );

}

void main() {
}

The error is: Error: function ...Test() need 'this' to access member
__funcliteral2

--


More information about the Digitalmars-d-bugs mailing list