[Issue 19494] New: [REG 2.080.0][objc] interface `main.NSObject.Class` conflicts with interface `main.NSObject.Class`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 15 16:25:36 UTC 2018
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 at puremagic.com
Reporter: doob at 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.
--
More information about the Digitalmars-d-bugs
mailing list