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

          Issue ID: 14913
           Summary: The return attribute cannot be on the left side of a
                    function declaration
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

struct Test
{
    int n;

    //Error: declaration expected, not 'return'
    return ref int test()
    {
        return n;
    }
}

--

Reply via email to