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

          Issue ID: 19494
           Summary: [REG 2.080.0][objc] interface `main.NSObject.Class`
                    conflicts with interface `main.NSObject.Class`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following code fails to compile using 2.080.0 or later:

extern (Objective-C) interface NSObject
{
    extern (Objective-C) interface Class {}
}

The error message is:

Error: interface `main.NSObject.Class` conflicts with interface
`main.NSObject.Class`

The issue is that when Objective-C class methods were implemented the type of
the metaclass was accidentally exposed as the "Class" member inside every
Objective-C interface.

--

Reply via email to