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: nob...@puremagic.com
          Reporter: czda...@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

--

Reply via email to