www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14087] New: disable this hides static opCall


          Issue ID: 14087
           Summary:  disable this hides static opCall
           Product: D
           Version: future
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: acehreli yahoo.com

This seems to be a regression due to the following change:


struct S
     disable this();

    static void opCall()

void main()

Error: struct deneme.S static opCall is hidden by constructors and can never be

It doesn't seem right to me that a disabled constructor hides opCall.


Jan 30 2015