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-7414] Redundant conditional conformance constraints left without warning #49957

Closed
AnthonyLatsis opened this issue Apr 11, 2018 · 2 comments
Labels
compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation improvement

Comments

@AnthonyLatsis
Copy link
Collaborator

Previous ID SR-7414
Radar None
Original Reporter @AnthonyLatsis
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, DiagnosticsQoI
Assignee None
Priority Medium

md5: 413586ebae5fd5df618cfb920436462c

Issue Description:

In Xcode 9.4 beta (Swift 4.1), redundant conformance constraints in conditional conformances do not produce warnings:

protocol P {}

protocol P1 {}

class A<T> where T: P {}

extension A: P1 where T: P {} // No warning 
@belkadan
Copy link
Contributor

cc @huonw

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@slavapestov
Copy link
Member

I actually fixed this in #41820, but redundant requirement warnings are now disabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation improvement
Projects
None yet
Development

No branches or pull requests

3 participants