Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8537] NSObject & NSObjectProtocol is not Equatable #51056

Open
an0 mannequin opened this issue Aug 15, 2018 · 3 comments
Open

[SR-8537] NSObject & NSObjectProtocol is not Equatable #51056

an0 mannequin opened this issue Aug 15, 2018 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis

Comments

@an0
Copy link
Mannequin

an0 mannequin commented Aug 15, 2018

Previous ID SR-8537
Radar rdar://problem/33790020
Original Reporter @an0
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, TypeChecker
Assignee None
Priority Medium

md5: 2756bbad2d6783185b95f24002637d6f

Issue Description:

NSObject is Equatable but Swift compiler thinks NSObject & NSObjectProtocol is not Equatable. It doesn't make sense.

@belkadan
Copy link
Contributor

Yep, we should make this work.

@swift-ci create

@slavapestov
Copy link
Member

It would be nice, but... how? :-)

@belkadan
Copy link
Contributor

belkadan commented Sep 6, 2018

Hm, well…maybe we can at least have the type checker explain that it's not supported and have a fix-it to insert the coercion?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants