www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13079] New: Need 'this' to access member - function literal


          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 puremagic.com
          Reporter: czdanol 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

Jul 08 2014