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

          Issue ID: 24821
           Summary: Can't return void from constructors
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

void foo();

class A
{
    this() => foo(); // fail
}

Error: cannot return expression from constructor

--

Reply via email to