www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19494] New: [REG 2.080.0][objc] interface

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: nobody puremagic.com
          Reporter: doob me.com

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.

--
Dec 15 2018