[Issue 19233] New: name conflict for init

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 8 03:17:01 UTC 2018


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

          Issue ID: 19233
           Summary: name conflict for init
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bitworld at qq.com

// Test code

class ExtensionConfig {

        void init(string s) {
        }
}

void main()
{
        ExtensionConfig config = ExtensionConfig.init;
}

// error message
source\app.d(49,27): Error: function app.ExtensionConfig.init(string s) is not
callable using argument types ()

See also:
https://issues.dlang.org/show_bug.cgi?id=17954

--


More information about the Digitalmars-d-bugs mailing list